So I am looking for a process that will handle either.
I realize the documention is referring specifically to handling a MultiPageTIFF.
The Documention Example for PdfCreateFromMultipageTIFF show this
Code: Select all
Dim MultipageImageID As Integer
oGdPictureImaging.TiffOpenMultiPageAsReadOnly(True) 'for better performances
MultipageImageID = oGdPictureImaging.CreateGdPictureImageFromFile("multipage.tif")
oGdPictureImaging.PdfCreateFromMultipageTIFF(MultipageImageID, "multipage.pdf", True, "MyPdfTitle", "MyPdfAuthor", "MyPdfSubject", "MyPdfKeywords", "MyPdfCreator")
oGdPictureImaging.ReleaseGdPictureImage(MultipageImageID)
But the CreateGdPictureImageFromFile when used on a TIFF with a single page does not
work with PdfCreateFromMultipageTIFF, that method returns an Invalid File Format.
(It took me a bit to realize why I was getting the Invalid File Format)
Are the two solutions for this?
1) use TiffCreateMultipageFromFile instead of CreateGdPictureImageFromFile
2) use the TiffCreateMultiPageFromGdPicture AFTER the CreateGdPictureImageFromFile
Is one better than the other?
Thanks