[xep-support] How about XEP embedding all the pages in a PDF file?

Enrico Raymundo enricor at thedistillery.com.au
Tue Jan 31 20:59:16 PST 2006


XEP Version 4.5 20060123 Personal Edition
OS: WinXP
Java: jdk1.5.0_06

According to:  http://www.renderx.com/reference.html#PDF

==========================================================================
5.2.2. PDF
PDF images are supported in PDF generator only. XEP embeds the first page of
a PDF document as a vector image. All related resources (fonts, images,
color profiles) are transferred to the output file. Annotations (text notes,
hyperlinks, etc) are dropped.

Any unencrypted PDF document conformant to PDF 1.3 can be embedded as image,
provided that it does not mix LZW and non-LZW compression for parts of the
same content stream.[1]

==========================================================================

I have a requirement for server-based PDF renderer and XEP satisfies almost
all of the selection criteria except the one in the title page.  You see, I
have requirement to compile different information sources:  MSWord, GIFs,
JPGs, PNGs, etc., organized through XML files.  MSWord files can be
converted into PDF files on-the-fly.

Source XML:
<resource source="DOC0001.DOC"/>

DOC0001.DOC => converted to DOC0001.PDF


Output FO:
<fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001.pdf)"/>
</fo:block>

Wish XEP can embed all the pages and not just (currently) the 1st page!!!
Now my solution will have to include splitting the PDF into several files (1
page - 1 file) tracking down page counts of each PDF file so the above
output FO will look like:

<fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001_page1.pdf)"/>
</fo:block>
<fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001_page2.pdf)"/>
</fo:block><fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001_page3.pdf)"/>
</fo:block><fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001_page4.pdf)"/>
</fo:block>
...
<fo:block break-before="page">
	<fo:external-graphic content-width="200mm" content-height="270mm"
src="url(DOC0001_pagenn.pdf)"/>
</fo:block>

Any chance this will be implemented and when and are there any other way to
impement this?

Thanks and regards,

Enrico Raymundo
XML Developer
The Distillery




The Distillery Pty Limited
ABN 69 080 932 467
PO Box 940, Dickson ACT 2602, AUSTRALIA
Phone: +61 2 6272 0200
Fax: +61 2 6262 5151
Web: www.thedistillery.com.au

---------------------------------------------------------------------
The information contained in this email and any files attached may be
confidential and/or copyrighted information of The Distillery, Third
Parties and/or the intended recipient and may be the subject of legal
privilege or public interest immunity. You may only reproduce or
distribute the material if you are expressly authorised by us to do
so. If you are not the intended recipient, any use, disclosure,
copying, circulation, forwarding, printing or publication of this
message or attached files is strictly forbidden.

If you have received this document in error or are not an intended
recipient, please notify the sender and delete from your Inbox and/or
system.

The Distillery does not represent or warrant that files attached to
this e-mail are free from computer viruses or other defects and
liability is limited to the resupply (or cost of resupply) of the
attached files.
---------------------------------------------------------------------

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list