Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Copy contents from one page to another

$
0
0

Yes i read

AVDoc current2 = AVAppGetActiveDoc();

PDDoc myPDDoc = AVDocGetPDDoc(current2);

PDPage pdPage;

 

for(all page loop)

for(

//retrieving all the annotoation)

{

//getting rectangle co ordinate from annotation

 

//cropping the current pdf

PDPageSetCropBox(pdPage, thisASFixedRect);

 

//creating another pdf

PDDoc pdDoc = PDDocCreate();

PDPage pdPaged= PDDocAcquirePage(myPDDoc, i);

PDPageSetPDEContent(pdPaged, gExtensionID);

                PDPageNotifyContentsDidChange  (pdPaged);

               

                PDPageReleasePDEContent(pdPaged, gExtensionID);

                PDPageRelease  (pdPaged);

                                        ;



PDDocSave(pdDoc, PDSaveFull | PDSaveCollectGarbage,ASPathFromPlatformPath (strcat(toremovetext,"\\coordi.pdf")), NULL, NULL, NULL);

 

 

 


}

 

 

}

Where i went wrong?


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>