The following problem bothers me: One of my customers has troubles printing PDF-files, he is getting the message "Unsupported Jbig2 Image". As the customer is always right, I tried to give him the ability to change the compression for bitonal PDF-files (for instance to CCITT4) but was unsuccessful in doing so.
Depending on the settings of my application I convert a TIF-file to PDF or PDF/A, with or without OCR by using the following code (only the part without OCR):
Code: Select all
pictureStatus = oGdPictureImaging.PdfCreateFromMultipageTIFF(lngImageID, PDFName, bolPDFA, Title, Author, Subject, Keywords, Creator)
Code: Select all
Dim oPDF As New GdPicture_NET_9.gdpicturepdf
oFSO.CopyFile PDFName, PDFName & "_orig.pdf", True
pictureStatus = oPDF.LoadFromFile(PDFName & "_orig.pdf", False)
oPDF.SetCompressionForBitonalImage PdfCompression_PdfCompressionCCITT4
oPDF.EnableCompression True
pictureStatus = oPDF.SaveToFile_2(PDFName, True)
Do I have to change the compression when I convert the TIF to PDF on a page by page basis instead of using the functions PdfCreateFromMultipageTIFF or SaveAsPDF?
Thanks in advance
Michael