aspose file tools*
The moose likes XML and Related Technologies and the fly likes fop: xml + xsl => pdf in xpdf ok, in acrobat not so. but via ps (xsl => ps => pdf) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "fop: xml + xsl => pdf in xpdf ok, in acrobat not so. but via ps (xsl => ps => pdf)" Watch "fop: xml + xsl => pdf in xpdf ok, in acrobat not so. but via ps (xsl => ps => pdf)" New topic
Author

fop: xml + xsl => pdf in xpdf ok, in acrobat not so. but via ps (xsl => ps => pdf)

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I produce a pdf-file like that:


Well the second command way is more complicated, and produces an pdf-file twice as big.
If viewn in xpdf or evince, both versions look the same - indistinguishable.

But customers complain they can't view it in acrobat under windows. So I tried a third viewer, ghostview (gv) on linux. This displays an error for the first but not for the second pdf:

Unrecoverable error, exit code 1
Error: /unknownerror in --stroke--
Operand stack:
--dict:8/17(L)-- 139.607 0.7085
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1156/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:6/15(L)-- --dict:1/1(ro)(G)-- --dict:3/5(L)--
Current allocation mode is local

How can I read this error? Is there some Information, I can use to find the source? I don't get any error from executing fop.

Maybe 150 lines is not too much to paste here. I removed nearly every duplication from the file, and end in one page with one table instead of 11 pages and about 50 tables, but preserve the error.


When I remove the block containing the table (read: both of them), the error vanishs.
Is there something wrong with the table? The text preceeding the table?


http://home.arcor.de/hirnstrom/bewerbung
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

P.S.:
The 0.dot.png is a 1x1-pixel-graphic, which gets streched by the program.

You may get it here: http://home.arcor.de/hirnstrom/bysios/0.dot.png

New tests revealed, that acroread 9.4.1, as well for linux as for windows, don't have problems showing the pdf. I have to investigate that further.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

The problem seems to be solved. I had graphics of width=0. Replacing them with width=0.001 leads to invisible graphics, as desired, without error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fop: xml + xsl => pdf in xpdf ok, in acrobat not so. but via ps (xsl => ps => pdf)