Hello,
is it possible to flatten the 'non-printable' and not the 'form fields' using 'RunJavaScript' -> this.flattenPages(???);?
Thank for help.
AleX
Flatten Comments
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Flatten Comments
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
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
-
- User
- Posts: 4
- Joined: Fri May 27, 2011 12:20 pm
Re: Flatten Comments
Hello Stefan,
is planned an option?
is planned an option?
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Flatten Comments
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
JavaScript for Acrobat API Reference
and we should keep consistent with that

Best,
Stefan
-
- User
- Posts: 4
- Joined: Fri May 27, 2011 12:20 pm
Re: Flatten Comments
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
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
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Flatten Comments
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
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