Robert,

Sorry for my late response.

This issue clearly is related to the postscript snippets we're embedding in 
your patters. This is similar to including an EPS file in your page content. We 
can do so for PostScript output only. There should be the possibility to do the 
same for PDF (embedding PDF in PDF), but we don't have that for now (and it's 
non-trivial).

So there could be the option to convert the PostScript to PDF after it was 
created by PyX (for example using ghostscript). Or you embed your pattern data 
as (high res) bitmap data ... this should work for PostScript and PDF.

We do not optimize the output for Adobe in any sense. However, you're creating 
quite non-trivial PostScript code, which might unsupported by Corel. One could 
do some experiments with Corel Draw and whether it can handle a certain 
complexity in patterns ... I expect simple PyX output to be processable by 
Corel Draw. But in the end we're trying to output PostScript according to the 
spec (well, the Adobe spec, as PostScript was developed by Adobe).

Best


André


Am 18.03.2010 um 18:56 schrieb ROBERT MORDEN:

> André,  the traceback below seems to be related to the pattern issue fix you 
> wrote for me before. I was limiting my output to .eps before but Corel Draw 
> can't open or import the .eps file's output by PyX (I am assuming this is, at 
> least in part, because Corel optimised their .eps reading only for Corel 
> written .eps files and PyX is optimised for Adobe??) so I am trying a .pdf 
> file. Any suggestions? 
> c is my canvas
> ##traceback clip##
>   c.writePDFfile(fn) 
> File "C:\Python26\lib\site-packages\pyx\canvas.py", line 289, in 
> wrappedindocument
>   return method(d, file)
> File "C:\Python26\lib\site-packages\pyx\document.py", line 171, in 
> writePDFfile
>   pdfwriter.PDFwriter(self, _outputstream(file, "pdf"), **kwargs)
> File "C:\Python26\lib\site-packages\pyx\pdfwriter.py", line 316, in __init__
>   catalog = PDFcatalog(document, self, registry)
> File "C:\Python26\lib\site-packages\pyx\pdfwriter.py", line 142, in __init__
>   self.PDFpages = PDFpages(document, writer, registry)
> File "C:\Python26\lib\site-packages\pyx\pdfwriter.py", line 201, in __init__
>   page = PDFpage(page, pageno, self, writer, registry)
> File "C:\Python26\lib\site-packages\pyx\pdfwriter.py", line 235, in __init__
>   self.PDFcontent = PDFcontent(page, writer, self.pageregistry)
> File "C:\Python26\lib\site-packages\pyx\pdfwriter.py", line 267, in __init__
>   page.processPDF(contentfile, writer, acontext, registry, self.bbox)
> File "C:\Python26\lib\site-packages\pyx\document.py", line 134, in processPDF
>   self._process("processPDF", *args)
> File "C:\Python26\lib\site-packages\pyx\document.py", line 128, in _process
>   getattr(cc, processMethod)(contentfile, writer, context, registry, bbox)
> File "C:\Python26\lib\site-packages\pyx\canvas.py", line 174, in processPDF
>   item.processPDF(file, writer, context, registry, nbbox)
> File "C:\Python26\lib\site-packages\pyx\deco.py", line 263, in processPDF
>   _writefillstyles(self.fillstyles, acontext, registry, bbox)
> File "C:\Python26\lib\site-packages\pyx\deco.py", line 235, in 
> _writefillstyles
>   style.processPDF(file, writer, context, registry, bbox)
> File "C:\Python26\lib\site-packages\pyx\pattern.py", line 119, in processPDF
>   canvas._canvas.processPDF(self, patternfile, writer, pdfwriter.context(), 
> patternregistry, realpatternbbox)
> File "C:\Python26\lib\site-packages\pyx\canvas.py", line 174, in processPDF
>   item.processPDF(file, writer, context, registry, nbbox)
> File "C:\Python26\lib\site-packages\pyx\canvasitem.py", line 60, in processPDF
>   raise NotImplementedError()
> NotImplementedError 
> 
> Take Care 
> Keep Smiling 
> Rob
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev_______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   [email protected], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to