Im trying to merge two PDF files… one that I am creating in memory, and one that is on disc.
Using DynaPDF from MBS
It errors on the notified line with a message that says ‘3: ImportPDFFile: OpenPage detected’
Does anyone know what that means and how to avoid it?
My code: (pdf is initialised before this code)
[code] pd = GetFolderItem(theapp.pdfsetts.pdfcoverDocument)
if pd <> nil then
if pd.Exists then
if uppercase(right(pd.Name, 4)) = ".PDF" then //import as pdf dim flags as integer = Bitwise.BitOr(pdf.kifImportAsPage, pdf.kifImportAll) call pdf.SetImportFlags(flags) call pdf.openimportFile(pd, pdf.kptopen, "") call pdf.ImportPDFFile(pdf.GetPageCount+1, 1.0, 1.0) <<this line errors call pdf.CloseImportFile else
//another kind of document such as an image has been selected