Skip to content
Snippets Groups Projects
Commit 25383a03 authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

return empty string if there is not titke

parent 298951f1
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class PDFparser { ...@@ -29,7 +29,7 @@ class PDFparser {
const pdfMeta = yield pdfdataextract_1.PdfData.extract(this.document, config_1.config); const pdfMeta = yield pdfdataextract_1.PdfData.extract(this.document, config_1.config);
const result = { const result = {
pages: pdfMeta.pages, pages: pdfMeta.pages,
title: pdfMeta.info.Title || "Unknown", title: pdfMeta.info.Title || "",
author: pdfMeta.info.Author || "Unknown", author: pdfMeta.info.Author || "Unknown",
creation_date: (0, timeUtils_1.formatPdfTime)(pdfMeta.info.CreationDate), creation_date: (0, timeUtils_1.formatPdfTime)(pdfMeta.info.CreationDate),
mod_date: (0, timeUtils_1.formatPdfTime)(pdfMeta.info.ModDate), mod_date: (0, timeUtils_1.formatPdfTime)(pdfMeta.info.ModDate),
......
...@@ -32,7 +32,7 @@ class PDFparser { ...@@ -32,7 +32,7 @@ class PDFparser {
const result = { const result = {
pages: pdfMeta.pages, pages: pdfMeta.pages,
title: pdfMeta.info.Title || "Unknown", title: pdfMeta.info.Title || "",
author: pdfMeta.info.Author || "Unknown", author: pdfMeta.info.Author || "Unknown",
creation_date: formatPdfTime(pdfMeta.info.CreationDate), creation_date: formatPdfTime(pdfMeta.info.CreationDate),
mod_date: formatPdfTime(pdfMeta.info.ModDate), mod_date: formatPdfTime(pdfMeta.info.ModDate),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment