[
https://issues.apache.org/jira/browse/FOP-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14357124#comment-14357124
]
Seifeddine Dridi edited comment on FOP-2406 at 3/11/15 4:26 PM:
----------------------------------------------------------------
This fixed the problem:
{code:Java}
--- src/java/org/apache/fop/pdf/PDFFactory.java (revision 1665413)
+++ src/java/org/apache/fop/pdf/PDFFactory.java (working copy)
@@ -197,15 +197,8 @@
- PDFResources res = getDocument().getFactory().makeResources();
- if (getDocument().isLinearizationEnabled()) {
- getDocument().trailerObjects.remove(resources);
- }
- res.setParentResources(resources);
+ PDFPage page = new PDFPage(resources, pageIndex, mediaBox, cropBox,
bleedBox, trimBox);
- PDFPage page = new PDFPage(res, pageIndex, mediaBox, cropBox,
bleedBox, trimBox);
- res.setParent(page);
-
{code}
Does this change break the PDF linearization feature?
was (Author: sdridi):
This fixed the problem:
--- src/java/org/apache/fop/pdf/PDFFactory.java (revision 1665413)
+++ src/java/org/apache/fop/pdf/PDFFactory.java (working copy)
@@ -197,15 +197,8 @@
- PDFResources res = getDocument().getFactory().makeResources();
- if (getDocument().isLinearizationEnabled()) {
- getDocument().trailerObjects.remove(resources);
- }
- res.setParentResources(resources);
+ PDFPage page = new PDFPage(resources, pageIndex, mediaBox, cropBox,
bleedBox, trimBox);
- PDFPage page = new PDFPage(res, pageIndex, mediaBox, cropBox,
bleedBox, trimBox);
- res.setParent(page);
-
Does this change break the PDF linearization feature?
> Error when image next to pdf
> ----------------------------
>
> Key: FOP-2406
> URL: https://issues.apache.org/jira/browse/FOP-2406
> Project: Fop
> Issue Type: Bug
> Reporter: simon steiner
> Attachments: img.pdf, test.fo, test.png
>
>
> JPG and PDF on same page gives adobe reader error due to pdf resource not
> being merged
> fop test.fo out.pdf
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)