Skip to main content
daitranthanhoa
Inspiring
April 4, 2017
Answered

How can saveAs a PDDoc to image file?

  • April 4, 2017
  • 1 reply
  • 1264 views

My code process save PDDoc to Image:

PDDoc NewDoc = PDDocCreate ();

ASPathName imagepath ="E:\\Acrobat 10 SDK\\TestData\\Image.png"

imagepath = ASFileSysCreatePathName(NULL, ASAtomFromString("Cstring"),  str, 0);

AVDocOpenFromPDDoc(NewDoc, NULL);

PDDocSave(NewDoc, PDSaveFull | PDSaveLinearized, imagepath, NULL, NULL, NULL);

But result Image.png error can't  open.

How can saveAs a PDDoc to image file?

Thanks all.

This topic has been closed for replies.
Correct answer Test Screen Name

Plugins should be using the AVConversion APIs. In the UI and scripting this is made to seem part of Save processing but it is not.

1 reply

Bernd Alheit
Community Expert
Community Expert
April 4, 2017

Image.png is a PDF document, not a image file.

daitranthanhoa
Inspiring
April 4, 2017

SDK support saveAs to image?

Bernd Alheit
Community Expert
Community Expert
April 4, 2017

Look at the saveAs method in the Acrobat JavaScript Reference.