Flatten Comments

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

AleX_
User
Posts: 4
Joined: Fri May 27, 2011 12:20 pm

Flatten Comments

Post by AleX_ »

Hello,

is it possible to flatten the 'non-printable' and not the 'form fields' using 'RunJavaScript' -> this.flattenPages(???);?

Thank for help.
AleX
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Flatten Comments

Post by Stefan - PDF-XChange »

Hello Alex,

I am afraid that the nNonPrint parameter will only allow you to flatten, skip , or remove such non printing annotations from the document, while all the rest would still be flattened.

There is no option in the function description to flatten only those I am afraid.

Best,
Stefan
Tracker
AleX_
User
Posts: 4
Joined: Fri May 27, 2011 12:20 pm

Re: Flatten Comments

Post by AleX_ »

Hello Stefan,
is planned an option?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Flatten Comments

Post by Stefan - PDF-XChange »

I am afraid not - as the JS specification comes from Adobe:
JavaScript for Acrobat API Reference
and we should keep consistent with that :(

Best,
Stefan
AleX_
User
Posts: 4
Joined: Fri May 27, 2011 12:20 pm

Re: Flatten Comments

Post by AleX_ »

Hello Stefan,

is there a way to dissolve without Acorbat JavaScript?
In the XChangeViewer there is also this selection. Can this also be contolled through the code?

Thanks,
AleX
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Flatten Comments

Post by Stefan - PDF-XChange »

Hi AleX_,

I am afraid that it's done through JS in the Viewer, but if you do not specifically need the comments flattened but just locked in place - then you can iterate through each and every object in your file and lock them and also make them read only individually.

And there is no way for the normal user to interact with a read only annotation unless he knows those are annotations that are not flattened, and uses some JS through the console to switch their state.

Best,
Stefan