|
From: Michael J G. <mic...@us...> - 2020-02-24 10:40:22
|
Hi Vignesh
You didn't provide a complete example, but I assume that your "j" is a
canvas.canvas instance, right?
The writePDFfile method of canvas creates a document.page and calls
document.document's writePFfile method for you. If you want to specify
keyword arguments for the latter when you use canvas.writePDFfile,
write them as "write_compress" etc.
Michael
Am Mo., 24. Feb. 2020 um 08:22 Uhr schrieb Vignesh T G <vig...@gm...>:
>
> Hello Pyx Development Team and users,
>
> I am generating a simple line plot using pyx in 'pdf' file format. Unfortunately, due to the data i have, the resulting file size is large. I found in the manual, about the 'compress' function in the module document but i don't know how to use it. Can someone help me in this regard?
>
> I tried "j.writePDFfile ('plot', compress=True, compresslevel=6)", but i get an error message stating there is "an unexpected argument compress and compresslevel"
>
> Thanks
> Vignesh TG
> _______________________________________________
> PyX-user mailing list
> PyX...@li...
> https://lists.sourceforge.net/lists/listinfo/pyx-user
|