Need immediate help.. FOP on Solaris Box

2008-04-04 Thread Newkid

Hi there!

Can any one let me know whether one can create an PDF file with the
following options:

a. Reading XML file from the stream, passing XSL which is stored in the
webdirectory and storing it in some other directory?

b. Reading XML from the database, passing XSL which is stored in the
webdirectory and output the pdf as a stream?

Please advice.

Would appreciate your response!
Newkid
-- 
View this message in context: 
http://www.nabble.com/Need-immediate-help..-FOP-on-Solaris-Box-tp16508410p16508410.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Could not load external SVG: Connection timed out

2008-04-04 Thread J.Pietschmann

Jens Kisters wrote:

[ERROR] Could not load external SVG: Connection timed out

...

I don't unterstand what kind of connection is timing out the SVG file is
embedded from the local filessytem


The network access is most likely for retrieving the SVG DTD.
You can either
1) Delete the DTD reference from the SVG, or try to produce
  the SVG without the DTD reference.
2) Use an entity resolver, a catalog and a local copy of the DTD
 http://xml.apache.org/commons/components/resolver/resolver-article.html

The FOP application should probably provide the latter out of the
box. If you have some time to spare you can send in a patch.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ANN: Jeuclid 3.1.0 released!

2008-04-04 Thread Max Berger

Dear JEuclid interest group,

I am pleased to announce the immediate release of JEuclid 3.1.0,  
available at:


https://sourceforge.net/project/showfiles.php?group_id=44862

This is the first release of the current development (trunk) branch.  
It includes:

* a completely rewritten layout engine
* many performance improvements
* many rendering improvements
* preliminary content math support
* better font support with full unicode high-plane support
* compatibility with fop 0.95 beta and the upcoming 0.95
* copy/paste support in mathviewer

The API is has changed and is still to be considered unstable.



Max Berger
e-mail: [EMAIL PROTECTED]

--
PGP/GnuPG ID: E81592BC   Print: F489F8759D4132923EC4  
BC7E072AB73AE81592BC

For information about me or my projects please see http://max.berger.name




PGP.sig
Description: This is a digitally signed message part


RE: Running FOP 0.94 from a server

2008-04-04 Thread Amick, Eric
Strictly speaking, it's neither. According to the XSLT spec, it's
interpreted relative to the location of the stylesheet that contains the
. Remember that imported stylesheets can also import
stylesheets.


Eric Amick
Legislative Computer Systems
Office of the Clerk

-Original Message-
From: bonekrusher [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 4, 2008 15:06
To: fop-users@xmlgraphics.apache.org
Subject: Running FOP 0.94 from a server


Hi,

I am running XML to PDF from a server. Everything works fine except when
I have a stylesheet that imports another. e.g.



I receive an error "can not compile stylesheet"

I suspect my problem is with the href path. Will the href path be
relative to the main stylesheet or the FOP.jar file?

Thanks

Bones

--
View this message in context:
http://www.nabble.com/Running-FOP-0.94-from-a-server-tp16495645p16495645
.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running FOP 0.94 from a server

2008-04-04 Thread bonekrusher

Hi,

I am running XML to PDF from a server. Everything works fine except when I
have a stylesheet that imports another. e.g.



I receive an error "can not compile stylesheet"

I suspect my problem is with the href path. Will the href path be relative
to the main stylesheet or the FOP.jar file?

Thanks

Bones

-- 
View this message in context: 
http://www.nabble.com/Running-FOP-0.94-from-a-server-tp16495645p16495645.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Large PDF's files fail to stream correctly

2008-04-04 Thread Daniel Appelt
Hi Graeme,

in general, you do not know in advance how long the rendering with FOP
will take. For large files it is not unlikely that the browser times
out or finishes fetching the PDF file in an unfinished state.
A possible pseudo-streaming solution could be to let FOP save the file
on the server, and use a website with an AJAX script on the client
side that regularly checks the state of the file. If file size isn't
changing between two or more consecutive checks, it might be assumed
that FOP has finished rendering the file and you could redirect the
browser to the respective URL or show it as a link. Of course, this
might still be problematic with regards to security...

Cheers,
Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP 0.95 BETA - java.lang.NullPointerException

2008-04-04 Thread Andreas Delmelle

On Apr 4, 2008, at 15:34, bonekrusher wrote:

Hi

Not sure if this should be posted under bugs or sent to the list.  
If I am in

error, please let me know.

Running a transformation under FOP 0.95 BETA I receive the below  
error.

However under FOP .094 I can produce a PDF.


Can you post (or otherwise share) the FO with us, so that we can look  
into it? If you want, you can open up a Bugzilla-entry and attach the  
FO there.


Thanks

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fox:continued-label

2008-04-04 Thread Andreas Delmelle

On Apr 4, 2008, at 13:04, bonekrusher wrote:

Hi



As for Andreas comment "The element is already implemented in my local
sandbox," - Thats great news. I look foward to it in an up comming  
release.


Well, don't get too excited... When I say 'the element', that means  
no more than that FOP will recognize a fo:table-retrieve-marker as a  
valid FO (whereas currently, it would at least warn you about an  
'unknown formatting object'. It has no effect whatsoever on the  
output, yet.


Just thought I'd clarify.

Cheers

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-04-04 Thread The Web Maestro
On Fri, Apr 4, 2008 at 1:18 AM, Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> I've just uploaded a new release (Version 1.2) of the PDF image support
>  plug-in for Apache FOP.

Congratulations, Jeremias!

Thanks for contributing such a great tool, and for the myriad of
things you do for the XSL-FO, PDF, Batik, XML, Graphics, Barcode &
Apache communities!

Regards,

The Web Maestro
-- 
<[EMAIL PROTECTED]> - 
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Could not load external SVG: Connection timed out

2008-04-04 Thread Jens Kisters
Hello Community,

we have an FOP 0.20.5 based application that fails to generates PDFs containing 
SVGs on a new server we moved the application to.

Output is:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP @version@
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] Could not load external SVG: Connection timed out
[ERROR] Error while creating area : No ImageReader for this type of image 
(file:/daten/hosting/package14004/html/appc/templates/volkswagen/_images/pdf/volkswagen_etraining2.svg)

After "setting up fonts" there is a long pause of about a minute.

Batik is in classpath, call is

/usr/local/jre//bin/java -Xmx150M -Xms150M -Djava.awt.headless=true
 -classpath 
/daten/hosting/package14004/html/shared/3rdparty/fop/lib/bcprov-jdk14-125.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/lib/xercesImpl-2.2.1.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/lib/xalan-2.4.1.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/lib/avalon-framework-cvs-20020806.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/lib/xml-apis.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/lib/batik.jar:/daten/hosting/package14004/html/shared/3rdparty/fop/build/fop.jar
 
org.apache.fop.apps.Fop 
-fo 
/daten/hosting/package14004/html/appc/content_manager/cms/pdf/temp/72958144bdc917487b1fea6988f96d0a_13978.fo
 

-pdf 
/daten/hosting/package14004/html/appc/content_manager/cms/pdf/temp/certificate_carsten.schlueter_bb_k.com_72958144bdc917487b1fea6988f96d0a_13978.pdf
 

-c 
/daten/hosting/package14004/html/appc/templates/volkswagen/cms_pdf_export/config_training.xml

 
I don't unterstand what kind of connection is timing out the SVG file is 
embedded from the local filessytem



Any help is appreciated, thanks a lot

Viele Grüße/ Best Regards

Jens Kisters
Unit Leader Software Engineering (CMS / eLearning)

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Large PDF's files fail to stream correctly

2008-04-04 Thread Woodhouse, Graeme
Hello,

Hopefully someone on this list can help,

We've been having long standing problems here building dynamic PDF's and 
streaming the to the Adobe PDF reader plugin. We use an Apache/Tomcat (through 
AJP) to stream these files. Unfortunatly as the files reach 40-50 pages they 
become to become randomly garbled and the reader reports them as corrupt.

Has anyone here had the same problem?

One possible fix we have found is to save the file to the server and link 
directly to the file, then delete the file. But this leaves security 
vulnerabilities in the system and we would prefer to get the streaming right.

It would be great if someone could shed some light on this problem!

Thanks in advance :)

Graeme Woodhouse
Software Engineer

ProQuest - The Quorum, Barnwell Road, Cambridge, CB5 8SW

Direct-Line:+44 (0) 1223 271 264
Switchboard:  +44 (0) 1223 215 512
Fax: +44 (0) 1223 215 513
www.proquest.co.uk

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this message in error, please notify the sender immediately 
by reply and immediately delete this message and any attachments.



Re: option to output graphice

2008-04-04 Thread bonekrusher

Hi,

This is what I do. In your Stylesheet you can add a parameter which can be
passed from your app.

e.g



Then in your stylesheet graphic template:

  






file:











hogie503 wrote:
> 
> Hi,
> 
> I am using the embeded examples in a Netbean IDE to render XML to PDF. is
> there a way to have two check boxes to give me the options to output, or
> do not output  graphics and or foldouts in the PDF.
> 
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/option-to-output-graphice-tp16467549p16491540.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FOP 0.95 BETA - java.lang.NullPointerException

2008-04-04 Thread bonekrusher

Hi,

Not sure if this should be posted under bugs or sent to the list. If I am in
error, please let me know.

Running a transformation under FOP 0.95 BETA I receive the below error.
However under FOP .094 I can produce a PDF.

SEVERE: Exception
java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
at org.apache.fop.cli.Main.main(Main.java:199)

-

java.lang.NullPointerException
at
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:60)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:218)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:246)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:60)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:226)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:170)
at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:246)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107)
at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552)
at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at org

Re: fox:continued-label

2008-04-04 Thread bonekrusher

Thank you Kamal and Andreas,

I commend those that are working on the source code for the FOP project. I
am sure its no easy task. I would love to take this on, but my knowledge of
Java is limited at best. I've only been working with Java for a few months.

I might have a possible solution to table header markers, which I will try
out today. If it works, I will post the work-a-round solution.

As for Andreas comment "The element is already implemented in my local
sandbox," - Thats great news. I look foward to it in an up comming release.

Once again, Thank you for your help.

Regards,

Bones


Andreas Delmelle-2 wrote:
> 
> On Apr 3, 2008, at 22:45, Kamal Bhatt wrote:
>> bonekrusher wrote:
>>> Hi,
>>>
>>> I am hoping if someone can provide some guidance on fox:continued- 
>>> label in
>>> FOP 0.94. Is this supported? If not what is the possible work  
>>> arounds?
>>>
>>> Thanks for the guidance.
>>>
>>> Bones
>>>
>>>
>>>
>> Answer, according to this page: http://xmlgraphics.apache.org/fop/ 
>> 0.94/extensions.html, is no.
>>
>> And based on the release notes, ditto 0.95a.
> 
> ... and, might I add, in the future it will never be re-implemented  
> as it was in 0.20.5
> 
>>
>> The general (pretty poor) work around is to use markers. See here:
>>
>> http://www.dpawson.co.uk/xsl/sect3/markers.html#d14055e100
> 
> What FOP really needs for this to work, is an implementation for XSL  
> 1.1's fo:table-retrieve-marker. You would put those in the fo:table- 
> header or fo:table-footer. The fo:markers would be placed as  
> described. Since the retrieve-boundary only extends to the containing  
> fo:table, the earlier mentioned issue of two tables ending up on the  
> same page is eliminated.
> I've already been assessing what we'd need to do for that, so it will  
> get there eventually. The element is already implemented in my local- 
> sandbox, but I thought it would be pointless to commit without a  
> backing implementation in the layout code.
> 
> If there are any volunteers to take this on, I'd be glad to give them  
> some pointers. As I see it, much of the marker-infrastructure we  
> currently have in place can be re-used/extended, so it's definitely  
> not something that needs to implemented from scratch.
> 
> 
> Cheers
> 
> Andreas
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/fox%3Acontinued-label-tp16468084p16491003.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multi page pdf using fop-one page for each person tag

2008-04-04 Thread Khan, Atique (IT)
Hi All,
I need to convert my xml data using xsl-fo template into pdf using fop.
My XML data looks like

  

  Payment Company
  ABC UK Ltd
  1
  10


  Employee Name
  Mr A Lastname
  2
  10

...


...

.
.


My xsl template is as follows:

http://www.w3.org/1999/XSL/Format";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

http://www.w3.org/1999/XSL/Format";>





















































 PRIVATE AND
CONFIDENTIAL


























 Paydate 































 Employee Name 


















 Employee Number 


















 Payment Method 




















.
.
.



Each of the employee tags need to go into a separate page in the pdf.
When I am creating the pdf its writing on the first page only without
advancing to the next page. Can somebody please point out the mistake in
my xsl template.

Thanks
Atique


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this e

Re: option to output graphice

2008-04-04 Thread Jeremias Maerki
Would you mind explaining with a few more words what you want to do? I
don't understand what you mean.

On 03.04.2008 17:07:06 hogie503 wrote:
> 
> Hi,
> 
> I am using the embeded examples in a Netbean IDE to render XML to PDF. is
> there a way to have two check boxes to give me the options to output, or do
> not output  graphics and or foldouts in the PDF.
> 
> Thanks.
> -- 
> View this message in context: 
> http://www.nabble.com/option-to-output-graphice-tp16467549p16467549.html
> Sent from the FOP - Users mailing list archive at Nabble.com.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-04-04 Thread Jeremias Maerki
I've just uploaded a new release (Version 1.2) of the PDF image support
plug-in for Apache FOP.

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.1a:
- Fixed handling of rotated pages (Thanks to Krister Wicksell)
- Fixed "PDFObject already has an object number" error occurring with
certain PDFs.
- Requires FOP 0.95beta or later


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]