Invalid PDF files from FOP 1.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Invalid PDF files from FOP 1.0

Theresa Jayne Forster

Well I have sort of tested the system now, I used the default fonts.fo file and transformed it to PDF.

 

This simple PDF is not compatible with adobe reader.

This is now getting silly.

 

My code + test files + output files are available at http://athos.ardentservers.com/fopengine-error.zip

 

If someone could point me to the reason why I am getting invalid PDFs out I would appreciate it.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

Reply | Threaded
Open this post in threaded view
|

Re: Invalid PDF files from FOP 1.0

rsargent
Don't you want to reference your fonts relative to font-base?

On 02/13/2012 09:07 AM, Theresa Jayne Forster wrote:

Well I have sort of tested the system now, I used the default fonts.fo file and transformed it to PDF.

 

This simple PDF is not compatible with adobe reader.

This is now getting silly.

 

My code + test files + output files are available at http://athos.ardentservers.com/fopengine-error.zip

 

If someone could point me to the reason why I am getting invalid PDFs out I would appreciate it.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

Reply | Threaded
Open this post in threaded view
|

RE: Invalid PDF files from FOP 1.0

Theresa Jayne Forster

Its not the fonts or anything – its that a simple fo file is not producing a valid pdf file at all no matter what I do. Its openable within Sumatra pdf but not in foxit or adobe.

 

I check the output logs, there are like WARNs but no ERRORS and it states it has rendered  the page ok. (as you can see below)

So why am I unable to open the PDF with adobe?

 

 

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@7a74db2c object number 29

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@7a74db2c object number 29

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@de16483 object number 30

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@de16483 object number 30

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@488ddb93 object number 31

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@488ddb93 object number 31

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@594ab51b object number 32

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@594ab51b object number 32

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFToUnicodeCMap@3bc6d11a object number 33

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFToUnicodeCMap@3bc6d11a object number 33

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@79ca209e object number 34

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFFont@79ca209e object number 34

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFToUnicodeCMap@4523a389 object number 35

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFToUnicodeCMap@4523a389 object number 35

2012-02-13 15:58:00,976 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFNumber@26c59ad5 object number 36

2012-02-13 15:58:00,976 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFNumber@26c59ad5 object number 36

2012-02-13 15:58:00,977 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFNumber@773829d5 object number 37

2012-02-13 15:58:00,977 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject - Assigning org.apache.fop.pdf.PDFNumber@773829d5 object number 37

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.render.intermediate.IFRenderer - Rendering finished.

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.render.intermediate.IFRenderer - Rendering finished.

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Initial heap size: 11600KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Initial heap size: 11600KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Current heap size: 15499KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Current heap size: 15499KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Total memory used: 3899KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Total memory used: 3899KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Total time used: 7548ms

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Total time used: 7548ms

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Pages rendered: 6

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Pages rendered: 6

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Avg render time: 1258ms/page (48pages/min)

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG org.apache.fop.area.AreaTreeHandler - Avg render time: 1258ms/page (48pages/min)

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Rob Sargent [mailto:[hidden email]]
Sent: 13 February 2012 16:19
To: [hidden email]
Subject: Re: Invalid PDF files from FOP 1.0

 

Don't you want to reference your fonts relative to font-base?

On 02/13/2012 09:07 AM, Theresa Jayne Forster wrote:

Well I have sort of tested the system now, I used the default fonts.fo file and transformed it to PDF.

 

This simple PDF is not compatible with adobe reader.

This is now getting silly.

 

My code + test files + output files are available at http://athos.ardentservers.com/fopengine-error.zip

 

If someone could point me to the reason why I am getting invalid PDFs out I would appreciate it.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer


Reply | Threaded
Open this post in threaded view
|

RE: Invalid PDF files from FOP 1.0

Theresa Jayne Forster
In reply to this post by Theresa Jayne Forster

Thanks to everyone who has tried to help, apparently the example I used as a template on the web was a little broken and didn’t close the output streams correctly, so with your help I now know what is wrong and am putting it right.

 

Thanks again

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Theresa Jayne Forster [mailto:[hidden email]]
Sent: 13 February 2012 16:07
To: [hidden email]
Subject: Invalid PDF files from FOP 1.0

 

Well I have sort of tested the system now, I used the default fonts.fo file and transformed it to PDF.

 

This simple PDF is not compatible with adobe reader.

This is now getting silly.

 

My code + test files + output files are available at http://athos.ardentservers.com/fopengine-error.zip

 

If someone could point me to the reason why I am getting invalid PDFs out I would appreciate it.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer