Pdf Limitations? how to produced highest quality output?

Hi there
just written a program that draws tens of thousands of lines and exports the result to pdf.
everything works fine, but when I open the pdf file with edge, nothing appears, when I open the file with Firefox, the lines appear just like they have been generated, but after a while the image turns blank, like a reset.

so i have two questions:

  1. is there a limit of objects in a pdf file?
  2. is generating pdf the way to go to print out my work in the best possible quality?

did you try a simple
https://processing.org/reference/save_.html
to .png


https://processing.org/reference/libraries/pdf/index.html
show 8 different ways, what you try?

save to png : done that, but that’s not what I call print quality
pdf files: been creating 100s of them so far withut issues in various ways, looks like that particular sketch reaches some limit though.

so to come back to my actual questions:
Hers’ what my research has given so far
Looks like there’s no limitation in pdf file size or complexity. however I have seen many posts where other people have issues with complex documents.

anyway, and that leads me to my 2nd question.
pdf files are not the preferred format for professional print shops. Best results can be obtained using rasterized images (bitmaps) using the cmyk color scheme.
This post provides information on what resolution you need to get a good quality print: https://dotphoto.freshdesk.com/support/solutions/articles/91319-what-is-the-best-resolution-for-my-photos-wall-art-and-posters-

Here’s a link on how to obtain high resolution files pdf / bitmap version with processing: https://sighack.com/post/exporting-high-resolution-images-in-processing

4 Likes