Problem with form document as inserted page

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ugradedeveloper
User
Posts: 223
Joined: Wed Aug 22, 2007 4:40 pm

Problem with form document as inserted page

Post by ugradedeveloper »

With reference to the following thread on the PDF-XChange Viewer user's forum:
https://forum.pdf-xchange.com/ ... =35&t=4230

As a work-around for this limitation (the fact that the insert-page function doesn't handle form fields), my application swaps the main file being edited and the file to be inserted, using a temporary file to enable the swap. After performing the insert, if my application tries to delete the temporary file, an error is generated saying that the file cannot be deleted because it is still in use. In other words, after a call to doc.insertPages(), the file indicated by the cPath parameter does not seem to be released by the PDF Viewer. Can this be fixed?

Thanks
Lewis