• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
18

Save in a different file format with cConvID com.callas.preflight.pdfa

Explorer ,
Oct 10, 2023 Oct 10, 2023

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 ...

 

 

SaveAs_NOT_work.png

Security_Settings.png

TOPICS
Create PDFs , Edit and convert PDFs , JavaScript , Modern Acrobat , PDF , PDF forms , Standards and accessibility

Views

604

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2023 Oct 10, 2023

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:

try67_0-1696949207069.png

 

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 25, 2023 Oct 25, 2023

Copy link to clipboard

Copied

LATEST

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)

Security-Enhanced.png

Preferences_Convert_from_PDF.png

 

 

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)

 

simple_pdf_save_As_PDF-A_by_Acrobat.png

not_convert_PDF-A.png

 

Thank you in advance for your availability and patience.

I wish good job.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines