You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by nikhil pingili <ni...@gmail.com> on 2011/02/16 19:55:17 UTC
converting to PNG format
Hi
Currently I am converting an XML to PDF format and this is woking
fine.I want to convert the XML to PNG format.
What I have done is change Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out) to
Fop fop = fopFactory.newFop(MimeConstants.MIME_PNG, foUserAgent, out).
The output comes,but the problem is instead of 4(the output should be
4 pages,this is how it is in the PDF) pages it only shows one page.
Any thoughts on why is this happening
Thanks
Nikhil.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
[ANN]VTD-XML 2.10
Posted by Jimmy Zhang <cr...@comcast.net>.
VTD-XML 2.10 is now released. It can be downloaded at
https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/.
This release includes a number of new features and enhancement.
* The core API of VTD-XML has been expanded. Users can now perform
cut/paste/insert on an empty element.
* This release also adds the support of deeper location cache support for
parsing and indexing. This feature is useful for application performance
tuning for
processing various XML documents.
* The java version also added support for processing zip and gzip files.
Direct processing of httpURL based XML is enhanced.
* Extended Java version now support Iso-8859-10~16 encoding.
* A full featured C++ port is released.
* C version of VTD-XML now make use of thread local storage to achieve
thread safety for multi-threaded application.
* There are also a number of bugs fixed. Special thanks to Jozef Aerts, John
Sillers, Chris Tornau and a number of other users for input and suggestions
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: converting to PNG format
Posted by Eric Douglas <ed...@blockhouse.com>.
If you read the documentation I believe it's in there.
PNG produces images which are single page so you only get the first
page.
If you use FOUserAgent.setOutputFile() to assign a name you can get one
file per page.
If you use embedded code and want the page objects get them from the
renderer.
-----Original Message-----
From: nikhil pingili [mailto:nikhilpingili@gmail.com]
Sent: Wednesday, February 16, 2011 1:55 PM
To: fop-users@xmlgraphics.apache.org
Cc: fop-users-help@xmlgraphics.apache.org
Subject: converting to PNG format
Hi
Currently I am converting an XML to PDF format and this is woking fine.I
want to convert the XML to PNG format.
What I have done is change Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out) to Fop fop
= fopFactory.newFop(MimeConstants.MIME_PNG, foUserAgent, out).
The output comes,but the problem is instead of 4(the output should be
4 pages,this is how it is in the PDF) pages it only shows one page.
Any thoughts on why is this happening
Thanks
Nikhil.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org