PdfCreateFromMultipageTIFF(Int32,String,Boolean,String,String,String,String,String,PdfCompression,PdfCompression) Method
Creates a multipage PDF from a multipage tiff image.
'Declaration
Public Overloads Function PdfCreateFromMultipageTIFF( _
ByVal As Integer, _
ByVal As String, _
ByVal As Boolean, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As PdfCompression, _
ByVal As PdfCompression _
) As GdPictureStatus
Parameters
- ImageID
- GdPicture image identifier. The multipage tiff image to save as PDF.
- PdfFileDest
- The destination of the pdf to create.
- PDFA
- True to generate PDF in PDF/A 1-b format else False.
- Title
- The title of the PDF.
- Author
- The PDF Author.
- Subject
- The PDF Subject.
- Keywords
- The PDF Keywords.
- Creator
- The name of the application which creates the PDF.
- BitonalCompressionScheme
- A member of the PdfCompression enumeration. The scheme to use to compress bitonal bitmap within the PDF.
- ColorCompressionScheme
- A member of the PdfCompression enumeration. The scheme to use to compress color bitmap within the PDF.
Return Value
A member of the GdPictureStatus enumeration.
Saving a multipage tiff file to a PDF document.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("multipage.tiff");
gdpictureImaging.PdfCreateFromMultipageTIFF(imageID, "output.pdf", true, "PDF from TIFF", "GdPicture.NET 14", "For test", "pdf, tiff", "Orpalis",
PdfCompression.PdfCompressionJPEG, PdfCompression.PdfCompressionJPEG);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}