[Poppler-bugs] [Bug 96801] New: pdfinfo: Don't print all info when printing javascript, struct, or meta

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 4 12:34:46 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=96801

            Bug ID: 96801
           Summary: pdfinfo: Don't print all info when printing
                    javascript, struct, or meta
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: utils
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: ajohnson at redneon.com

When using the -meta, struct, struct-text, or -js options of pdfinfo, all the
info that is normally printed when no option is specified is printed before the
 requested data. When using -meta, struct, struct-text, or -js in scripts or
when saving to a file it is difficult to filter out the info part. It makes
more sense to not print the pdf info for these options.

The attached patch re-arranges pdfinfo.cc to:
- don't print the info when -meta, struct, struct-text, or -js is specified
- factor the print info code out main() into a separate function
- move main() to the end of the file removing the need to declare a bunch of
static functions at the top of the file

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160704/b0b0c672/attachment.html>


More information about the Poppler-bugs mailing list