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

Create a PDF with OLE\automation without aleatory pop-up...

$
0
0

Hi,

 

I create PDF documents from an initial PDF file.

I use automation objects.

It works good but sometimes I have a pop-up with the message below:

 

Adobe Acrobat recovered one or more documents that have not been properly recorded before the Acrobat stop.

Click Yes to open the documents retrieved.

 

Here the code:

 

VLC_AVDoc_InitFile = CreateObject("AcroExch.AVDoc")

 

VLC_PDDoc_InitFile = CreateObject("AcroExch.PDDoc")

 

 

VLC_AVDoc_InitFile>>Open(VLC_Path_InitFile,"")

VLP_PDDoc_InitFile = VLC_AVDoc_InitFile>>GetPDDoc()

 

 

VLC_AVDoc_NewFile = CreateObject("AcroExch.AVDoc")

VLC_PDDoc_NewFile = CreateObject("AcroExch.PDDoc")

 

VLC_AVDoc_NewFile>>Open(VLC_Path_EmptyFile,"")

VLC_PDDoc_NewFile = VLC_AVDoc_NewFile>>GetPDDoc()

 

 

VLC_PDDoc_NewFile>>InsertPages(VLC_PageWhereInsert,VLC_PDDoc_InitFile,VLC_FirstPageToInsert,VLC_NbPagesToInsert,1)

VLC_PDDoc_NewFile>>DeletePages(0,0)

VLC_PDDoc_NewFile>>Save(1,VLC_Path_NewFile)

VLC_AVDoc_NewFile>>Close(1)

 

 

The methods never return errors...############

#####

 

 


Viewing all articles
Browse latest Browse all 10848

Trending Articles



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