Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LOGO in PDF file (Apache FOP)

482478Oct 31 2007 — edited Nov 1 2007
Hi all...I'm using the Apache FOP PDF printing option with the jsp packaged in the AppEx 3.0.1 install. I would like to put a logo in the header of the generated PDF file. I made a compy of the default generic columns layout and added this to the header section in Page Template:
<fo:block>
Test Header Changes
<fo:external-graphic src="file:///tmp/FastenalLogo.png"/>
</fo:block>


The following error is then generated in the logs:

07/10/31 10:50:44 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
07/10/31 10:50:44 [INFO] building formatting object tree
07/10/31 10:50:44 [INFO] setting up fonts
07/10/31 10:50:51 [INFO] [1]
07/10/31 10:50:51 [WARNING] table-layout=auto is not supported, using fixed!
07/10/31 10:50:53 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
07/10/31 10:50:54 [INFO] [2]
07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
07/10/31 10:50:55 [INFO] [3]
07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
07/10/31 10:50:56 [INFO] Parsing of document complete, stopping renderer


I also tried using a URL (with appropriate syntax), but that generated these errors:
07/10/31 10:44:14 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
07/10/31 10:44:14 [INFO] [3]
07/10/31 10:44:15 [ERROR] Could not load external SVG: http://epsilon.fastenal.c om:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespa ce required.
07/10/31 10:44:15 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
07/10/31 10:44:15 [INFO] Parsing of document complete, stopping renderer


Is it not possible to import an external image file into a PDF rendered by the Apache FOP? Any help would be greatly appreciated.

Thanks,
Leigh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2007
Added on Oct 31 2007
6 comments
3,603 views