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 Jeremias Maerki <de...@jeremias-maerki.ch> on 2008/11/28 16:36:12 UTC

[ANN] New release of PDF image support for Apache FOP

I've just uploaded a new release (Version 1.3) of the PDF image support
plug-in for Apache FOP (0.95beta and later).

The plug-in allows to include existing PDF files using
fo:external-graphic and fox:external-document when generating PDF output.
It is published under the Apache License V2.0, just like Apache FOP.

For details on the plug-in, please read the README file in the
distribution.

Download from here:
http://www.jeremias-maerki.ch/development/fop/index.html

Changes since version 1.2:
- Fixed a NullPointerException when the MediaBox is inherited.
- An invalid page number is now properly handled.

Hashes:
6B2563F90128F2C4F2C5B5CD2F59BEAB  fop-pdf-images-1.3-bin.tar.gz
619BF5486A34D9E4E5ABD0E273659149  fop-pdf-images-1.3-bin.zip
252126A3CDE5EC7A48892C1787B1403C  fop-pdf-images-1.3-src.tar.gz
C77C3D5647E96233D5B1F4A3722E28E2  fop-pdf-images-1.3-src.zip

Enjoy,
Jeremias Märki
_________________________________________________________
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: [ANN] New release of PDF image support for Apache FOP

Posted by "Browning, Jamie" <Ja...@catlin.com>.
Great work Jeremias. Your dedication and commitment is very much appreciated.

Jamie Browning
theFrame Programme
Phone: +44 (0)20 7015 0981
E-mail: jbrowning@catlin.com
-----Original Message-----
From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Sent: 28 November 2008 15:36
To: fop-users@xmlgraphics.apache.org
Subject: [ANN] New release of PDF image support for Apache FOP

I've just uploaded a new release (Version 1.3) of the PDF image support
plug-in for Apache FOP (0.95beta and later).

The plug-in allows to include existing PDF files using
fo:external-graphic and fox:external-document when generating PDF output.
It is published under the Apache License V2.0, just like Apache FOP.

For details on the plug-in, please read the README file in the
distribution.

Download from here:
http://www.jeremias-maerki.ch/development/fop/index.html

Changes since version 1.2:
- Fixed a NullPointerException when the MediaBox is inherited.
- An invalid page number is now properly handled.

Hashes:
6B2563F90128F2C4F2C5B5CD2F59BEAB  fop-pdf-images-1.3-bin.tar.gz
619BF5486A34D9E4E5ABD0E273659149  fop-pdf-images-1.3-bin.zip
252126A3CDE5EC7A48892C1787B1403C  fop-pdf-images-1.3-src.tar.gz
C77C3D5647E96233D5B1F4A3722E28E2  fop-pdf-images-1.3-src.zip

Enjoy,
Jeremias Märki
_________________________________________________________
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


________________________________________________________
This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, copying of, or any action taken in reliance upon it, is strictly prohibited and may be illegal.
Catlin Underwriting Agencies Limited, Catlin Insurance Company (UK) Ltd and Catlin (Wellington) Underwriting Agencies Limited are authorised and regulated by the Financial Services Authority.
The registered office of Catlin Underwriting Agencies Limited (incorporated and registered in England and Wales with company number 1815126) and Catlin Insurance Company (UK) Ltd  (incorporated and registered in England and Wales with company number 5328622 ) is 6th Floor, 3 Minster Court, Mincing Lane, London EC3R 7DD. 

Catlin Risk Solutions Limited is an Appointed Representative of Catlin Underwriting Agencies Limited.
________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: [ANN] New release of PDF image support for Apache FOP

Posted by The Web Maestro <th...@gmail.com>.
On Fri, Nov 28, 2008 at 7:36 AM, Jeremias Maerki <de...@jeremias-maerki.ch> wrote:
> I've just uploaded a new release (Version 1.3) of the PDF image support
> plug-in for Apache FOP (0.95beta and later).
>
> The plug-in allows to include existing PDF files using
> fo:external-graphic and fox:external-document when generating PDF output.
> It is published under the Apache License V2.0, just like Apache FOP.

Congratulations on the release, Jeremias! Your efforts are
appreciated, and I suspect many will take advantage of your hard work!

Regards,

The Web Maestro
-- 
<th...@gmail.com> - <http://ourlil.com/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


AW: AW: [ANN] New release of PDF image support for Apache FOP

Posted by Georg Datterl <ge...@geneon.de>.
Hi Jeremias,

> "No ImagePreloader found" means that either the plug-in was not found in the classpath 
> or that the PDF file could not be loaded by PDFBox.

Note to self: Not only put the jars in the classpath, also put them in the CORRECT classpath. Works great now!

Thanks for your help and for the package. Another problem solved.
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: AW: [ANN] New release of PDF image support for Apache FOP

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 02.12.2008 11:04:17 Georg Datterl wrote:
> Hi Jeremias,
> 
> I just tried  to use the extension (with the latest data fom repository) with 
> 
> <fo:external-graphic src="GF_logo_sw.pdf#page=1"/>
> 
> and get a 
> 
> ERROR apps.FOUserAgent [main]: Image not available. URI: GF_logo_sw.pdf#page=1. Reason: org.apache.xmlgraphics.image.loader.ImageException: No ImagePreloader found for GF_logo_sw.pdf#page=1 (Siehe Position 1:2012)

"No ImagePreloader found" means that either the plug-in was not found in
the classpath or that the PDF file could not be loaded by PDFBox.

> Same result without #page=1.
> 
> The logo pdf starts with
> 
> %PDF-1.5
> %âãÏÓ
> 1 0 obj
> <</Metadata 38 0 R/Pages 2 0 R/OCProperties<</D<</RBGroups[]/ON[22 0 R]/Order 21 0 R>>/OCGs[22 0 R]>>/Type/Catalog>>
> endobj
> 38 0 obj
> 
> 1) Does that mean it's a PDF 1.5 file and does that explain the error message? 

Yes, that's PDF 1.5 and not it doesn't explain the error message.

> a1) Do you know a way to convert the pdf to 1.4?

I never had to do that but I can imagine there are a number of tools out
there that can do that. For example, GhostScript should be able to do it.

> 2) Where's the root for external-graphic? fop.xconf-><base>?

Yes. But "No ImagePreloader found" also means that the file was found.
There was just no way available to handle the image.

> 3) What's the difference between fo:external-graphic and fox:external-document?

See the documentation for fox:external-document:
http://xmlgraphics.apache.org/fop/0.95/extensions.html#external-document

Basically, fo:external-graphic creates an inline, single-page image
inside a page. fox:external-document creates a page-sequence and creates
a new page for each page in the source document.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: [ANN] New release of PDF image support for Apache FOP

Posted by Peter Coppens <pc...@gmail.com>.
Thanks. It does help, Peter.


> From: Jeremias Maerki <de...@jeremias-maerki.ch>
> Reply-To: <fo...@xmlgraphics.apache.org>
> Date: Mon, 01 Dec 2008 11:45:22 +0100
> To: <fo...@xmlgraphics.apache.org>
> Subject: Re: [ANN] New release of PDF image support for Apache FOP
> 
> On 01.12.2008 11:36:12 Peter Coppens wrote:
>> Jeremias,
>> 
>> We are trying to maintain a 'clean' maven setup to build our own software
>> from. For those dependencies we don't have external maven repo's we try to
>> build from the source.
>> 
>> The 'problem' we are currently facing is that it is unclear for us which
>> version of PDFBox the fop-pdf 1.3 build depends on. We found a
>> PDFBox-0.7.4-dev.jar  and local version of some of the classes in
>> /src/java/org/apache/fop/render/pdf/pdfbox/
>> 
>> Do you see a way to help us. Perhaps you have the svn revision corresponding
>> to PDFBox-0.7.4-dev?
> 
> PDFBox @SourceForge ran on CVS. The code change I needed to make the
> plug-in work was this one:
> http://sourceforge.net/tracker/?func=detail&atid=552834&aid=1806912&group_id=7
> 8314
> 
> So I guess if you checked out the source with date "2007-10-16" you
> should get a version that works with the plug-in. What I'm publishing
> with the plug-in is a local snapshot build. I know, it's not beautiful.
> 
> Anyway, I'm planning to migrate the plug-in to the migrated PDFBox
> (currently in ASF incubation) as soon as the first release is ready.
> That will make things easier.
> 
> HTH
> 
>> Many thanks indeed!
>> 
>> Peter
>> 
>>> From: Jeremias Maerki <de...@jeremias-maerki.ch>
>>> Reply-To: <fo...@xmlgraphics.apache.org>
>>> Date: Fri, 28 Nov 2008 16:36:12 +0100
>>> To: <fo...@xmlgraphics.apache.org>
>>> Subject: [ANN] New release of PDF image support for Apache FOP
>>> 
>>> I've just uploaded a new release (Version 1.3) of the PDF image support
>>> plug-in for Apache FOP (0.95beta and later).
>>> 
>>> The plug-in allows to include existing PDF files using
>>> fo:external-graphic and fox:external-document when generating PDF output.
>>> It is published under the Apache License V2.0, just like Apache FOP.
>>> 
>>> For details on the plug-in, please read the README file in the
>>> distribution.
>>> 
>>> Download from here:
>>> http://www.jeremias-maerki.ch/development/fop/index.html
>>> 
>>> Changes since version 1.2:
>>> - Fixed a NullPointerException when the MediaBox is inherited.
>>> - An invalid page number is now properly handled.
>>> 
>>> Hashes:
>>> 6B2563F90128F2C4F2C5B5CD2F59BEAB  fop-pdf-images-1.3-bin.tar.gz
>>> 619BF5486A34D9E4E5ABD0E273659149  fop-pdf-images-1.3-bin.zip
>>> 252126A3CDE5EC7A48892C1787B1403C  fop-pdf-images-1.3-src.tar.gz
>>> C77C3D5647E96233D5B1F4A3722E28E2  fop-pdf-images-1.3-src.zip
>>> 
>>> Enjoy,
>>> Jeremias Märki
>>> _________________________________________________________
>>> Jeremias Märki, Software-Development and Consulting
>>> Contact Information: http://www.jeremias-maerki.ch/contact.html
>>> Blog: http://www.jeremias-maerki.ch/blog/
>>> 
> 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> 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


Re: [ANN] New release of PDF image support for Apache FOP

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 01.12.2008 11:36:12 Peter Coppens wrote:
> Jeremias,
> 
> We are trying to maintain a 'clean' maven setup to build our own software
> from. For those dependencies we don't have external maven repo's we try to
> build from the source.
> 
> The 'problem' we are currently facing is that it is unclear for us which
> version of PDFBox the fop-pdf 1.3 build depends on. We found a
> PDFBox-0.7.4-dev.jar  and local version of some of the classes in
> /src/java/org/apache/fop/render/pdf/pdfbox/
> 
> Do you see a way to help us. Perhaps you have the svn revision corresponding
> to PDFBox-0.7.4-dev?

PDFBox @SourceForge ran on CVS. The code change I needed to make the
plug-in work was this one:
http://sourceforge.net/tracker/?func=detail&atid=552834&aid=1806912&group_id=78314

So I guess if you checked out the source with date "2007-10-16" you
should get a version that works with the plug-in. What I'm publishing
with the plug-in is a local snapshot build. I know, it's not beautiful.

Anyway, I'm planning to migrate the plug-in to the migrated PDFBox
(currently in ASF incubation) as soon as the first release is ready.
That will make things easier.

HTH

> Many thanks indeed!
> 
> Peter
> 
> > From: Jeremias Maerki <de...@jeremias-maerki.ch>
> > Reply-To: <fo...@xmlgraphics.apache.org>
> > Date: Fri, 28 Nov 2008 16:36:12 +0100
> > To: <fo...@xmlgraphics.apache.org>
> > Subject: [ANN] New release of PDF image support for Apache FOP
> > 
> > I've just uploaded a new release (Version 1.3) of the PDF image support
> > plug-in for Apache FOP (0.95beta and later).
> > 
> > The plug-in allows to include existing PDF files using
> > fo:external-graphic and fox:external-document when generating PDF output.
> > It is published under the Apache License V2.0, just like Apache FOP.
> > 
> > For details on the plug-in, please read the README file in the
> > distribution.
> > 
> > Download from here:
> > http://www.jeremias-maerki.ch/development/fop/index.html
> > 
> > Changes since version 1.2:
> > - Fixed a NullPointerException when the MediaBox is inherited.
> > - An invalid page number is now properly handled.
> > 
> > Hashes:
> > 6B2563F90128F2C4F2C5B5CD2F59BEAB  fop-pdf-images-1.3-bin.tar.gz
> > 619BF5486A34D9E4E5ABD0E273659149  fop-pdf-images-1.3-bin.zip
> > 252126A3CDE5EC7A48892C1787B1403C  fop-pdf-images-1.3-src.tar.gz
> > C77C3D5647E96233D5B1F4A3722E28E2  fop-pdf-images-1.3-src.zip
> > 
> > Enjoy,
> > Jeremias Märki
> > _________________________________________________________
> > Jeremias Märki, Software-Development and Consulting
> > Contact Information: http://www.jeremias-maerki.ch/contact.html
> > Blog: http://www.jeremias-maerki.ch/blog/
> > 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: [ANN] New release of PDF image support for Apache FOP

Posted by Peter Coppens <pc...@gmail.com>.
Jeremias,

We are trying to maintain a 'clean' maven setup to build our own software
from. For those dependencies we don't have external maven repo's we try to
build from the source.

The 'problem' we are currently facing is that it is unclear for us which
version of PDFBox the fop-pdf 1.3 build depends on. We found a
PDFBox-0.7.4-dev.jar  and local version of some of the classes in
/src/java/org/apache/fop/render/pdf/pdfbox/

Do you see a way to help us. Perhaps you have the svn revision corresponding
to PDFBox-0.7.4-dev?

Many thanks indeed!

Peter

> From: Jeremias Maerki <de...@jeremias-maerki.ch>
> Reply-To: <fo...@xmlgraphics.apache.org>
> Date: Fri, 28 Nov 2008 16:36:12 +0100
> To: <fo...@xmlgraphics.apache.org>
> Subject: [ANN] New release of PDF image support for Apache FOP
> 
> I've just uploaded a new release (Version 1.3) of the PDF image support
> plug-in for Apache FOP (0.95beta and later).
> 
> The plug-in allows to include existing PDF files using
> fo:external-graphic and fox:external-document when generating PDF output.
> It is published under the Apache License V2.0, just like Apache FOP.
> 
> For details on the plug-in, please read the README file in the
> distribution.
> 
> Download from here:
> http://www.jeremias-maerki.ch/development/fop/index.html
> 
> Changes since version 1.2:
> - Fixed a NullPointerException when the MediaBox is inherited.
> - An invalid page number is now properly handled.
> 
> Hashes:
> 6B2563F90128F2C4F2C5B5CD2F59BEAB  fop-pdf-images-1.3-bin.tar.gz
> 619BF5486A34D9E4E5ABD0E273659149  fop-pdf-images-1.3-bin.zip
> 252126A3CDE5EC7A48892C1787B1403C  fop-pdf-images-1.3-src.tar.gz
> C77C3D5647E96233D5B1F4A3722E28E2  fop-pdf-images-1.3-src.zip
> 
> Enjoy,
> Jeremias Märki
> _________________________________________________________
> Jeremias Märki, Software-Development and Consulting
> Contact Information: http://www.jeremias-maerki.ch/contact.html
> Blog: http://www.jeremias-maerki.ch/blog/
> 
> 
> ---------------------------------------------------------------------
> 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


AW: [ANN] New release of PDF image support for Apache FOP

Posted by Georg Datterl <ge...@geneon.de>.
Hi Jeremias,

I just tried  to use the extension (with the latest data fom repository) with 

<fo:external-graphic src="GF_logo_sw.pdf#page=1"/>

and get a 

ERROR apps.FOUserAgent [main]: Image not available. URI: GF_logo_sw.pdf#page=1. Reason: org.apache.xmlgraphics.image.loader.ImageException: No ImagePreloader found for GF_logo_sw.pdf#page=1 (Siehe Position 1:2012)

Same result without #page=1.

The logo pdf starts with

%PDF-1.5
%âãÏÓ
1 0 obj
<</Metadata 38 0 R/Pages 2 0 R/OCProperties<</D<</RBGroups[]/ON[22 0 R]/Order 21 0 R>>/OCGs[22 0 R]>>/Type/Catalog>>
endobj
38 0 obj

1) Does that mean it's a PDF 1.5 file and does that explain the error message? 
a1) Do you know a way to convert the pdf to 1.4?
2) Where's the root for external-graphic? fop.xconf-><base>?
3) What's the difference between fo:external-graphic and fox:external-document?
 
Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org