How can I copy the blendmode in a Javascript?

A picture is worth a thousand words. We have created some pdfs tutorials showing common tasks.

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Stefan - PDF-XChange

Post Reply
Eldereld
User
Posts: 4
Joined: Mon Dec 17, 2018 9:20 pm

How can I copy the blendmode in a Javascript?

Post by Eldereld »

Hallo supporters,
I am currently writing a JavaScript code that converts a square annotation into a free text annotation.
All properties are copied, except the blending mode.
Which method must be used for this? Is there a trick?
I would be happy to receive a tip.
Many thanks in advance,
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19794
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: How can I copy the blendmode in a Javascript?

Post by Stefan - PDF-XChange »

Hello Eldereld,

I did take a look at the JS API and could not find anything related to it being able to read, copy or set a blend mode for an object so I do not believe it is possible, however I will also check with our devs to be 100% certain.

p.s. Just heard back from our devs, and they confirmed to me that BlendMode is not defined in JS - so you would not be able to control that property of objects with JS code.

Kind regards,
Stefan
Post Reply