How to print pdf file with layers
Solved
General and Desktop
-
Hi!
Can I add my elements to a pdf file sorted to layers? I want to specify each layer's name and visibility? Is it possible somehow?
Thanks in advance,Attila
@balazsati You can't do that with Qt as far as I can tell. You could possibly achieve that by using 3rd party library with Qt bindings (poppler, QPdf) but not Qt alone.
-
Hi
Layers came with PDF version 1.5. PDF and more formally known as Optional Content Groups (OCG) and as far as i know poppler supports it
https://github.com/davidben/poppler/blob/master/poppler/OptionalContent.cc
But i never tried it. -
@balazsati You can't do that with Qt as far as I can tell. You could possibly achieve that by using 3rd party library with Qt bindings (poppler, QPdf) but not Qt alone.