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

Acrobat Java Script API SavePDFAs error

New Here ,
Dec 28, 2021 Dec 28, 2021

Hello all,

 

I have an application that runs on Microsoft VBA, that pulls a PDF and it Saves it As a "png" file.

 

I was using it on Windows XP with Excel Version 2002 Buid 12527-22079) and bought a new computer with Widows 11 and Microsoft Office Home and Business 2021 Excel Version 2111 (Build 14701-20262) my app  was running flawlessly until I move it to the new W11 machine.

 

I have installed in both machines Acrobat PRO DC Release 1 version 2021.007.20099 64 bit

Now in the new Windows 11 machine, when the application runs and tries to save the PDF as a png file, I get the error message "Error attempting to write to file. This may be due to insufficient disk space Page 1".

 

PNG_Error_1.pngexpand image

 

This is the code is running and causeing the error "boResult = objJSO.SaveAs(PDFPath, ExportFormat)".

 

Once it shows the error message,  I just click the OK button  on the error message window and it doesn't saves the png file.

 

I have more the 800MB free in the drive.


I have tried to save in different directory with the same result,


Tried saving it as jpg, but got an error regarding the server was not available.

 

I have been Googling and the only thing I have found from Adobe Support is to switch of the RGB to OFF in the color management options, but the thing is that SaveAs function in the Java Script API  does not has that parameter.

 

Also I found where Adobe is saying the problem is an Operating System independent and the Acrobat PRO DC is compatible with Windows 11.

 

Does anyone outhere  has any knowledge regarding this issue? and/or a solution maybe?

Any help will be very appreciated.

Thanks in advance

TOPICS
Crash or freeze , Edit and convert PDFs , General troubleshooting , JavaScript
632
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 ,
Jan 04, 2022 Jan 04, 2022

Can you export as PNG in Adobe Acrobat?

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
New Here ,
Jan 05, 2022 Jan 05, 2022

Yes, you can exprot to many different image formats

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 ,
Jan 05, 2022 Jan 05, 2022
LATEST

I don't know why it doesn't work for you.

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