PDF layers (OCG) don't work with vbs

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
gesteam
Posts: 8
Joined: Mon Mar 02, 2009 3:57 pm

PDF layers (OCG) don't work with vbs

Post by gesteam » Thu Mar 10, 2022 12:23 pm

Hi all,

I took the simple example from the documentation: "Using PDF Layers or Optional Content Groups" consisting of putting an image in the background only when printing. Attached GdPicture_Bug_OCG.zip, containing in a file the vb script, an image, and the PDF produced by the script.

The script creates a PDF from scratch, puts the image in it and links it to the created layer, and saves it as "OCG_bug_demo.pdf" at the same level as the script.
The active part of the example goes from lines 39 to 77 (I have kept some utility methods that do not influence the demonstration of the problem and facilitate the implementation of GdPicture).
At line 63, the image is linked to the layer "Watermark image layer"
On line 67 we make this layer visible when printing
On line 71 we make it invisible on the screen.
When you open the PDF, it is empty, the image is invisible on the screen. It's OK. The "Watermark image layer" layer is present in the list of layers, and the image appears if it is made visible.
When printing, the result is empty: the image is not printed, which is abnormal.

GdPicture 14.1.128.

Regards
Attachments
GdPicture_Bug_OCG.zip
(22.07 KiB) Downloaded 489 times

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: PDF layers (OCG) don't work with vbs

Post by Hugo » Thu Mar 10, 2022 6:02 pm

Hi there,

Thank you for your feedback.

Could you please try this in our latest release as this may already be fixed since V14.1.128 which is somewhat outdated by now?
https://www.gdpicture.com/download-gdpicture/

Regards,
Hugo Cudd
Technical Support

gesteam
Posts: 8
Joined: Mon Mar 02, 2009 3:57 pm

Re: PDF layers (OCG) don't work with vbs

Post by gesteam » Fri Mar 11, 2022 10:55 am

Hi,

Just tried with last version 14.1.156 : it still does not work

Regards

gesteam
Posts: 8
Joined: Mon Mar 02, 2009 3:57 pm

Re: PDF layers (OCG) don't work with vbs

Post by gesteam » Mon Mar 28, 2022 9:50 am

Hi,

We submitted this issue to Orpalis support in November 2021.
Can it finally be resolved ?

Thanks
Regards

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: PDF layers (OCG) don't work with vbs

Post by Hugo » Thu Mar 31, 2022 12:07 pm

Hi,

Thank you for letting me know. Our latest version is V14.1.159.

Since you mention to have already contacted us, could you get back to me on the ticket you created for this please?

Regards,
Hugo Cudd
Technical Support

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest