[
https://issues.apache.org/jira/browse/PDFBOX-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Leleu closed PDFBOX-1446.
------------------------------
> PreflightDocument constructor ignores given PreflightConfiguration instance
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-1446
> URL: https://issues.apache.org/jira/browse/PDFBOX-1446
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.0
> Reporter: Petras
> Assignee: Eric Leleu
>
> One of the constructor in PreflightDocument document, where custom
> PreflightConfiguration instance can be passed, does not set it to the
> internal class variable "config" and therefore ignores it. Here is the patch
> to fix this bug:
> Index: PreflightDocument.java
> ===================================================================
> --- PreflightDocument.java (revision 1409245)
> +++ PreflightDocument.java (working copy)
> @@ -91,6 +91,7 @@
> public PreflightDocument(COSDocument doc, Format format,
> PreflightConfiguration cfg) {
> super(doc);
> this.specification = format;
> + this.config = cfg;
> if (this.config == null) {
> initConfiguration(format);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira