Posted 24 October 2018, 1:49 pm EST - Updated 4 October 2022, 2:02 am EST
Code is very simple.
I Load a .PDF into the C1PdfDocumentSource, Iterate over the Pages, and save each Page as a .tif file. This works great.
I have a situation where one PDF loses content when exported to .tif. It is like disappearing ink.
Here is the psudo code:
C1PdfDocumentSource.LoadFromFile(Invoice.FilePath) Invoice.FilePages = C1PdfDocumentSource.PageCount For IndexPage As Integer = 1 To Invoice.FilePages FilePath = System.IO.Path.Combine(Invoice.FilePath & "." & IndexPage.ToString("000") & ".tif") TiffFilter = New C1.Win.C1Document.Export.TiffFilter() TiffFilter.FileName = FilePath TiffFilter.Range = New C1.Win.C1Document.OutputRange(IndexPage.ToString) C1PdfDocumentSource.Export(TiffFilter) TiffFilter = Nothing
I have attached the original PDF, the exported .tif pages and a screen shot of the 2 areas that are being lost.
Please help!
John