Bug 94304 - [PATCH] Add -noannotate option in pdftocairo to disable annotations
Summary: [PATCH] Add -noannotate option in pdftocairo to disable annotations
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 08:50 UTC by Stephen E.
Modified: 2018-08-21 11:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to add -noannotate option to pdftocairo (2.13 KB, text/plain)
2016-02-26 08:50 UTC, Stephen E.
Details

Description Stephen E. 2016-02-26 08:50:03 UTC
Created attachment 121977 [details]
Patch to add -noannotate option to pdftocairo

I was looking for a way to prevent pdftocairo from drawing PDF form fields when rendering to a bitmap, and came up short. The attached patch adds a -noannotate flag which does this. (Thanks to jcrain from IRC for pointing me toward the appropriate internals!)
Comment 1 Adrian Johnson 2016-02-27 09:03:10 UTC
Instead of an option for turning off annotations I would prefer a more general option for controlling annotations. The glib api has print options:

 * POPPLER_PRINT_DOCUMENT: print main document contents
 * POPPLER_PRINT_MARKUP_ANNOTS: print document and markup annotations
 * POPPLER_PRINT_STAMP_ANNOTS_ONLY: print document and only stamp annotations
 * POPPLER_PRINT_ALL: print main document contents and all markup annotations

We could adde a "-annotate=xxx" type of option. eg

 -annotate=[none|markup|stamp|all]

with the default (when -annotate is not specified) to print no annotations.

I'm not sure if it would also be useful to be able to specify a list of specific annotations. eg

 -annotate=watermark,printermark,trapnet

But this could easily be added later if someone found a need for it.
Comment 2 GitLab Migration User 2018-08-21 11:03:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/484.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.