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

Angular, PDF and Acrobat

Community Expert ,
Aug 29, 2023 Aug 29, 2023

Is it possible that an app (in angular 12) can pass parameters to a PDF file opened with Acrobat Reader?

We would like to make it pass the path of the saving directory and the name of the file.

Preferably without having to use an application script in Acrobat.

 

Thank you.


PDF Acrobatic, InDesigner & Photoshoptographer
TOPICS
Edit and convert PDFs , JavaScript , PDF , PDF forms
1.2K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Aug 29, 2023 Aug 29, 2023

For Reader there are three methods (I know of) for passing data, that don't require special rights or something else. None of these use the IAC, which doesn't work with Reader.  

I don't know if any of these methods are compatible with Angular. 

 

1.   Submit to a server script. The script can be local. 

2.   Acquire local file data with "util.readFileIntoStream".

3.  Use the Acrobat open parameters to specify an FDF file, which was presumably just created by the app.  

 

#1 and #2 are driven from the Acrobat side. Only #3 is driven from the external app, which is what I think you intended. 

 

Hope this helps. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
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 ,
Aug 29, 2023 Aug 29, 2023

For Reader there are three methods (I know of) for passing data, that don't require special rights or something else. None of these use the IAC, which doesn't work with Reader.  

I don't know if any of these methods are compatible with Angular. 

 

1.   Submit to a server script. The script can be local. 

2.   Acquire local file data with "util.readFileIntoStream".

3.  Use the Acrobat open parameters to specify an FDF file, which was presumably just created by the app.  

 

#1 and #2 are driven from the Acrobat side. Only #3 is driven from the external app, which is what I think you intended. 

 

Hope this helps. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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 ,
Aug 30, 2023 Aug 30, 2023

Thank you Thom.

How can I use the Acrobat open parameters to specify an FDF file?

I don't know a setting like this one, where is it?


PDF Acrobatic, InDesigner & Photoshoptographer
Translate
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 ,
Aug 30, 2023 Aug 30, 2023

The documentation is pretty old, but I believe still valid. Here's a link:

https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf

 

I would hope there was a newer online reference, but I haven't found it yet. 

 

Good Luck, 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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 ,
Aug 31, 2023 Aug 31, 2023
LATEST

Thank you again.

 


PDF Acrobatic, InDesigner & Photoshoptographer
Translate
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