John Brown created FOP-2660:

             Summary: Cannot add cropped pdf as fo:external-graphic 
                 Key: FOP-2660
             Project: FOP
          Issue Type: Bug
          Components: image/unqualified
    Affects Versions: trunk
         Environment: Windows 10, FOP r1768353, FOP PDF Images plugin 2.1.0
            Reporter: John Brown

My original pdf (created by printing to PDF Creator 
( works as an external graphic in This PDF has 1-inch borders which I removed using Briss
( The cropped PDF image is not displayed in
test.pdf. I think that it is present but invisible because when I look at the
document's properties (Fonts), I see two fonts but lorem_cropped.pdf has
1 font.

To reproduce:
<!-- BEGIN -->
<?xml version="1.0"?>
<fo:root xmlns:fo="";>
    <fo:simple-page-master master-name="A4-portrait" page-height="29.7cm" 
page-width="21.0cm" margin="2cm">
  <fo:page-sequence master-reference="A4-portrait">
    <fo:flow flow-name="xsl-region-body">
            Hello, World!
        <fo:external-graphic src="lorem_cropped.pdf" /> <!-- External graphic 
here -->
<!-- END -->

lorem.pdf is a "Lorem ipsum" paragraph printed to PDF Creator on letter
 size paper.
lorem_cropped.pdf is lorem.pdf cropped to contain just the paragraph
with minimal whitespace.
test.pdf is the output of
C:\>fop test.pdf

I am using fop SVN r1768353 (2016-10-20 17:03:59 -0500) and the fop
PDF Images plugin from on
Windows 10.

You also need the input PDFs. How do I send them to you?
John Brown.

This message was sent by Atlassian JIRA

Reply via email to