From a97a1bcaa2ed90fbe062c4605cfd1aa6a07655c1 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 3 Aug 2013 12:16:52 +0930 Subject: [PATCH 3/3] pdfinfo: indicate if pdf contains embedded files --- utils/pdfinfo.1 | 3 +++ utils/pdfinfo.cc | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/utils/pdfinfo.1 b/utils/pdfinfo.1 index cc967b2..458caac 100644 --- a/utils/pdfinfo.1 +++ b/utils/pdfinfo.1 @@ -51,6 +51,9 @@ form (AcroForm / XFA / none) javascript (yes/no) .RE .RS +embedded files (yes/no) +.RE +.RS page count .RE .RS diff --git a/utils/pdfinfo.cc b/utils/pdfinfo.cc index 44773a3..51bcd72 100644 --- a/utils/pdfinfo.cc +++ b/utils/pdfinfo.cc @@ -257,6 +257,10 @@ int main(int argc, char *argv[]) { printf("JavaScript: %s\n", jsInfo.containsJS() ? "yes" : "no"); } + // print embedded files info + printf("Embedded Files: %s\n", + doc->getCatalog()->numEmbeddedFiles() > 0 ? "yes" : "no"); + // print page count printf("Pages: %d\n", doc->getNumPages()); -- 1.7.10.4