Acrobat Java Script API SavePDFAs error
Copy link to clipboard
Copied
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".
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
Copy link to clipboard
Copied
Can you export as PNG in Adobe Acrobat?
Copy link to clipboard
Copied
Yes, you can exprot to many different image formats
Copy link to clipboard
Copied
I don't know why it doesn't work for you.

