Copy link to clipboard
Copied
Respectable Community of Acrobat.
I encountered a problem on Acrobat Pro in the function of Javascript:
save in a different file format = saveAs().
I would like to use the conversion format defining the parameter = cConvID , from the Conversion Formats table:
-> com.callas.preflight.pdfa
source -> https://www.pdfscripting.com/public/how-to-save-a-pdf-2.cfm
From the many examples (however, not detailed enough) found online, I try to implement this function ==
this.saveAs ("/c/temp/test.pdf", "com.callas.preflight.pdfa");
... however, without success. Acrobat Pro does not process the function, and reacts only with the message:
"No intent of defined outputs. To convert to PDF/A Pdf File, an intent of output is a net. Define an intent of output in preliminary verification preferences. "
Note: All files in use are included in Trusted Folder.
Probably only to define the function =
this.saveAs ("/c/temp/test.pdf", "com.callas.preflight.pdfa");
it is not enough.
Request:
- This function, does it work?
- Where is my mistake?
Thank you in advance.
With respect ...
Copy link to clipboard
Copied
Something to try:
Go to Edit - Preferences - Convert from PDF - PDF/A, and make sure at least one of the options is selected there, like this:
I would also disable "Enable protected mode" and "Run in App Container" in the Security (Enhanced) tab of the Preferences dialog.
And! The saveAs method requires a privileged context. You can't call it directly from a button. But test your code in the JS Console first, and see if it works from there.
Copy link to clipboard
Copied
Dear Community Expert Try67,
as first - I thank you very much for your courteous reply, and as a second - I apologize to having answered with a wide delay, I had to focus on other objectives and now I went back to the old problem of Acrobat.
On the subject with the first demand:
"Save in a different file format with cconvid com.callas.preflight.pdfa";
I performed in detail your advice by applying following actions:
1) Preferences -> Security (Enhanced) -> Disable "ENABLE PROTECTED MODE" + Disable "Run in Appiner App" ;
2) Preferences -> convert from pdf -> pdf/a -> edit settings -> Preflight:
*Convert to pdf/a = save as pdf/a-2
*Create PDF/A-2 ACCORDING TO CONVERSION PROFILE = ??? Is empty !!!
*For the Following Viewing or Printing Condition = ??? Is Nothing !!!
I attach the relative screen 1) + 2)
However, even with the conversion by bars of the commands:
File -> Save as Other -> Archivable PDF (PDF/A) -> Error:
"No intent of defined outputs. To convert to PDF/A Pdf File, an intent of output is a net. Define an intent of output in preliminary verification preferences. "
... is always present, preventing conversion.
I have to notice, that I use an Acrobat Pro 2023 covered by the license - but as a result = I can't carry out the basic operation => "convert into pdf/a".
I attach other screen 3) + 4)
Thank you in advance for your availability and patience.
I wish good job.