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 brycenesbitt <br...@obviously.com> on 2007/02/10 05:59:04 UTC

7 page FOP postscript file only shows first page in GhostScript, etc.

I'm trying to embed an EPS into a fop .20.5 on OS X.

When I build a postscript file, only the first page shows up in GhostScript
or other postscript views.

My command line is:
fop-0.20.5/fop.sh -d -c userconfig.xml -xsl dashcard.xsl -ps dashcard.ps
-xml dashcard.xml -d

Looking at the PostScript file, there are clearly multiple pages.  Here's a
7 page test example:
http://www.obviously.com/temp/dashcard.ps

The same command line, producing a pdf, gives 7 pages.  But then the image
does not show up... not in acroread... not in GhostScript.  Any clues?
-- 
View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8897915
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: 7 page FOP postscript file only shows first page in GhostScript, etc.

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ok, so had you really used FOP 0.20.5 you wouldn't have the problem. At
least it works for me after adding force-page-count="no-force" to your
stylesheet [1]. Only FOP 0.20.4 leads to the problem you described. Even
after diffing the PS generated by 0.20.4 and 0.20.5 I don't quite see
what the problem is. Probably a glitch in GhostScript.

The whole thing will also work with FOP 0.93 although you will need to
tweak the stylesheet a little bit to get the same output.

[1] http://xmlgraphics.apache.org/fop/faq.html#blank-page-between-page-sequences

On 10.02.2007 05:59:04 brycenesbitt wrote:
> 
> I'm trying to embed an EPS into a fop .20.5 on OS X.
> 
> When I build a postscript file, only the first page shows up in GhostScript
> or other postscript views.
> 
> My command line is:
> fop-0.20.5/fop.sh -d -c userconfig.xml -xsl dashcard.xsl -ps dashcard.ps
> -xml dashcard.xml -d
> 
> Looking at the PostScript file, there are clearly multiple pages.  Here's a
> 7 page test example:
> http://www.obviously.com/temp/dashcard.ps
> 
> The same command line, producing a pdf, gives 7 pages.  But then the image
> does not show up... not in acroread... not in GhostScript.  Any clues?
> -- 
> View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8897915
> Sent from the FOP - Users mailing list archive at Nabble.com.


Jeremias Maerki


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


Re: 7 page FOP postscript file only shows first page in GhostScript, etc.

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 12.02.2007 23:56:01 brycenesbitt wrote:
> 
> Encapsulating Encapsulated Postscript be deprecated, but it is not clear
> there is a viable alternative.  What I start with is Illustrator files.  EPS
> is a reasonably automated export.  And my target is a postscript based
> format.  What am I supposed to do instead?

For PostScript output, this is an excellent approach. It's only
deprecated for PDF!!! For PDF, it's better to export to SVG from
Illustrator.

> Any idea if the GhostScript people removed EPS support deliberately?  Or is
> a reportable bug?

No idea, sorry.

I'll take a look at the files you sent me directly after I come back
from my client this evening.

> 
> Jeremias Maerki-2 wrote:
> > 
> > As for your question about producing a PDF file:
> > http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#eps tells you why.
> > It should theoretically show up in GhostScript but it seems newer
> > GhostScript versions don't support showing the EPS anymore. Please note
> > that embedding EPS files in PDF is deprecated and should not be done
> > anymore.
> > 
> 
> Keywords: GhostScript EPS invisible FOP embedded Adobe Illustrator PDF
> -- 
> View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8934843
> Sent from the FOP - Users mailing list archive at Nabble.com.


Jeremias Maerki


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


Re: 7 page FOP postscript file only shows first page in GhostScript, etc.

Posted by brycenesbitt <br...@obviously.com>.
Encapsulating Encapsulated Postscript be deprecated, but it is not clear
there is a viable alternative.  What I start with is Illustrator files.  EPS
is a reasonably automated export.  And my target is a postscript based
format.  What am I supposed to do instead?

Any idea if the GhostScript people removed EPS support deliberately?  Or is
a reportable bug?


Jeremias Maerki-2 wrote:
> 
> As for your question about producing a PDF file:
> http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#eps tells you why.
> It should theoretically show up in GhostScript but it seems newer
> GhostScript versions don't support showing the EPS anymore. Please note
> that embedding EPS files in PDF is deprecated and should not be done
> anymore.
> 

Keywords: GhostScript EPS invisible FOP embedded Adobe Illustrator PDF
-- 
View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8934843
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: 7 page FOP postscript file only shows first page in GhostScript, etc.

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This is interesting. Your PS file indeed causes DSC errors in
GhostScript. If I look at the file with a text editor I'd say the file
is correct. The EPS file is correctly enclosed between
%%Begin/EndDocument. If I disable DSC functionality in GhostView I can
see all pages correctly which is somewhat different to your experience.
Of course, I cannot scroll back to previous pages in that case.

BTW, you said you're using FOP 0.20.5, but the PostScript file says
you're using 0.20.4. Not that this would change anything. Anyway, would
you please convert the same file using FOP 0.93 to check if the same
problem happens? Or could you provide the whole example as FO file with
the EPS and the bitmap image?

As a little test I extracted the EPS file manually from your PS file and
used it in a little FO test file. No problem with GhostScript in that
case. That's strange.

As for your question about producing a PDF file:
http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#eps tells you why.
It should theoretically show up in GhostScript but it seems newer
GhostScript versions don't support showing the EPS anymore. Please note
that embedding EPS files in PDF is deprecated and should not be done
anymore.

On 10.02.2007 05:59:04 brycenesbitt wrote:
> 
> I'm trying to embed an EPS into a fop .20.5 on OS X.
> 
> When I build a postscript file, only the first page shows up in GhostScript
> or other postscript views.
> 
> My command line is:
> fop-0.20.5/fop.sh -d -c userconfig.xml -xsl dashcard.xsl -ps dashcard.ps
> -xml dashcard.xml -d
> 
> Looking at the PostScript file, there are clearly multiple pages.  Here's a
> 7 page test example:
> http://www.obviously.com/temp/dashcard.ps
> 
> The same command line, producing a pdf, gives 7 pages.  But then the image
> does not show up... not in acroread... not in GhostScript.  Any clues?
> -- 
> View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8897915
> Sent from the FOP - Users mailing list archive at Nabble.com.



Jeremias Maerki


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