Hello,
We are getting the following error when we try to convert a PDF to TIFF. The PDF can be opened and viewed without a password but has security enabled for content copying. Currently we have a time-consuming manual workaround to open the pdf and recreate it as PDF again, which removes the security.
Is there another way to bypass the security? We don't have the option to request the sender to remove the security in the source PDF.
The file TM00001.pdf has access restrictions. , , at FREngine.IEngine.GetNumberOfPagesInImageFile(String ImageFilePath, IImagePasswordCallback PasswordCallback)
at Datacap.Libraries.Convert.PdfFRE.ExtractTIFFsFromPDFEx(String filePath, Boolean useFastBinarization, Int32 jpegQuality, Int32 resolution, Int32 compressionBW, Int32 compressionColor, Int32 compressionGray, String extensionBW, String extensionColor, String extensionGray, Int32 convertMode, Int32 maxPagesForInMemProcess, String language, Boolean createLayout, Boolean reuseTextInSearchablePdf, String log, String saveDocument, String correctSkewMode)
10:33:34.261 (0) t:16A8 p:10AD670 System.Runtime.InteropServices.COMException (0x80004005): The file TM00001.pdf has access restrictions.
at FREngine.IEngine.GetNumberOfPagesInImageFile(String ImageFilePath, IImagePasswordCallback PasswordCallback)
at Datacap.Libraries.Convert.PdfFRE.ExtractTIFFsFromPDFEx(String filePath, Boolean useFastBinarization, Int32 jpegQuality, Int32 resolution, Int32 compressionBW, Int32 compressionColor, Int32 compressionGray, String extensionBW, String extensionColor, String extensionGray, Int32 convertMode, Int32 maxPagesForInMemProcess, String language, Boolean createLayout, Boolean reuseTextInSearchablePdf, String log, String saveDocument, String correctSkewMode)
10:33:34.261 (0) t:16A8 p:10AD670 PDF to TIF extraction complete.
10:33:34.261 (0) t:16A8 p:10AD670 Conversion exception encountered: The file TM00001.pdf pdf has access restrictions.
Thank you.
------------------------------
KT
------------------------------