I have a problem with PXCp_WriteDocumentW not working.
Every even number - 2,4,6……etc. - it doesn't work.
The odd numbered times -1,3,5,7....etc. it works.
XCPro35_Defs.PXCp_WriteDocumentW(pdf, AOutPdfFile, XCPro35_Defs.PXCp_CreationDisposition.PXCp_CreationDisposition_Overwrite, 0);
A call to PXCp_WriteDocumentW twice for the same document with the last parameter as zero (0) will produce unpredictable behavior (even a crash). See the documentation for details:
Topic 188.8.131.52 PXCp_WriteDocumentW, pg. 280, PDF-ToolsV4SDK.pdf
You can contact us by phone, email or our social media accounts — we are here to assist you.