Toggle the layers visibility.

534 views
Skip to first unread message

Kathiravan E

unread,
May 7, 2018, 5:44:04 AM5/7/18
to pdfium

Hi All,


I want to toggle the visibility of the PDF layers. But i could not see any APIs related to retrieving the layer/ layerdatas from Pdfium library.

In the below patagames forum link, they provided some suggestion to toggle the layer's visibility,


http://forum.patagames.com/posts/t325-How-to-select-PDF-layers-to-display


But i don't know how to get the layer details from Pdfium library. Can you please provide any suggestion to achieve the layer's toggle operation.


Regards,
Kathiravan E

Dan Sinclair

unread,
May 7, 2018, 9:53:18 AM5/7/18
to Kathiravan Eks, pdfium
I don't think PDFium has any logic to deal with layers at this point. You'd need to add a new public/ API and then hook it up to achieve what you're looking for. Feel free to file a bug at https://crbug.com/pdfium and we can add it to the back log of needed APIs.

dan


--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To post to this group, send email to pdf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/2c176e3a-f614-4240-a464-22f5747a2c94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jean Haney

unread,
Sep 10, 2018, 10:53:05 AM9/10/18
to pdfium
We have a commercial alternative to PDFium which supports discreet layers based on different criteria (color, spot color, line weights, PDF layers), . Please contact us if you want more information.
jean

Lei Zhang

unread,
Sep 20, 2018, 1:02:25 AM9/20/18
to Kathiravan Eks, pdfium, Dan Sinclair
We certainly have existing bugs [1] [2] filed for interacting with
OCGs. If those do not cover your needs, file more bugs and/or
contribute code.

[1] https://bugs.chromium.org/p/pdfium/issues/detail?id=709
[2] https://bugs.chromium.org/p/pdfium/issues/detail?id=1136
> https://groups.google.com/d/msgid/pdfium/CAMYH%3DOi%3DoREZyf_-vt9rqQffD_JOh2uF6kb8Kau2HiiNA-8iHw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages