Discussion:
[PyX-user] insert/include PDF
René Bastian
2015-12-05 11:26:27 UTC
Permalink
2015.12.05

Guten Tage & Bonjour,

how to include PDF files ?

a+

René
--
René Bastian
www.pythoneon.org
--
René Bastian
www.pythoneon.org
André Wobst
2015-12-05 19:17:05 UTC
Permalink
Dear René,

well, I'm sorry, PyX cannot (yet) do that.

Best,


André
Post by René Bastian
2015.12.05
Guten Tage & Bonjour,
how to include PDF files ?
a+
René
--
René Bastian
www.pythoneon.org
--
René Bastian
www.pythoneon.org
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
PyX-user mailing list
https://lists.sourceforge.net/lists/listinfo/pyx-user
--
by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
/ \ \ / ) ***@users.sourceforge.net, http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
Alan G Isaac
2015-12-05 19:47:20 UTC
Permalink
If this is worth the effort to the OP, I wonder if a round trip would work?
First convert the PDF to EPS:
http://tex.stackexchange.com/questions/20883/how-to-convert-pdf-to-eps
Then create your pyx image, importing the EPS with `epsinclude`.
Then if PDF output is needed, could this be exported to PDF?

This is really a question rather than an answer.

Alan Isaac
André Wobst
2015-12-05 20:43:00 UTC
Permalink
Hi,

well, you cannot embed EPS in PDF. (Somehow I have in mind that there actually is something like embedding postscript in PDF, which will not be rendered by a PDF renderer, but could be printed on Postscript printers, but I'm missing the details right now.)

What PyX really does for this case is to convert the EPS to a bitmap and put this bitmap in the PDF output. I added this years ago, as it was handy for me at some point in time. But it generates a warning and is by no means a proper embedding. (On the other side, yes, this is a way to go to somehow get other data embedded. Embed it as bitmap data. We can do so for Postscript, PDF and SVG, we support bitmap data for all those output formats.)

Still, our true goal is to be able embed PDF in PDF like we can embed Postscript in Postscript and SVG in SVG. (And for SVG we also have a parsed mode, which actually recreates the graphic data within PyX, with rather serious limitations though, but still quite useful in some cases.)

Right now we cannot embed PDF in PDF.

Best,


André
Post by Alan G Isaac
If this is worth the effort to the OP, I wonder if a round trip would work?
http://tex.stackexchange.com/questions/20883/how-to-convert-pdf-to-eps
Then create your pyx image, importing the EPS with `epsinclude`.
Then if PDF output is needed, could this be exported to PDF?
This is really a question rather than an answer.
Alan Isaac
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
PyX-user mailing list
https://lists.sourceforge.net/lists/listinfo/pyx-user
--
by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
/ \ \ / ) ***@users.sourceforge.net, http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
Loading...