setrcore.blogg.se

Tiff to pdf
Tiff to pdf










tiff to pdf

The example below creates a PDF document from a PNG file with a custom configuration: GdpictureDocumentConverter.LoadFromFile( "C:\temp\source.png", ) GdpictureDocumentConverter.LoadFromFile( ) GdpictureDocumentConverter.LoadFromFile( "C:\temp\source.jpg", ) The example below creates a PDF document from a JPG file with a custom configuration: PdfUseDeflateOnJPEG is a Boolean value that specifies whether to use the deflate compression scheme in the output PDF file. GdpictureDocumentConverter.PdfImageQuality = 50 ' Save the output in a new PDF document. GdpictureDocumentConverter.PdfColorImageCompression = PdfCompression.PdfCompressionJPEG GdpictureDocumentConverter.LoadFromFile( "C:\temp\source.tiff", ) GdpictureDocumentConverter.PdfImageQuality = 50 The example below creates a PDF document from a TIFF file with a custom configuration: PdfImageQuality is an integer from 0 to 100 that specifies the image quality in the output PDF file. PdfEnableLinearization is a Boolean value that specifies whether to linearize the output PDF to enable Fast Web View mode. PdfEnableColorDetection is a Boolean value that specifies whether to use automatic color detection during the conversion that preserves image quality and reduces the output file size. PdfColorImageCompression is a member of the PdfCompression enumeration that specifies the compression scheme used for color images in the output PDF file. PdfBitonalImageCompression is a member of the PdfCompression enumeration that specifies the compression scheme used for bitonal images in the output PDF file. Optionally, configure the conversion with the following properties of the GdPictureDocumentConverter object: GdpictureDocumentConverter.SaveAsPDF( "C:\temp\output.pdf") GdpictureDocumentConverter.SaveAsPDF( Using gdpictureDocumentConverter As GdPictureDocumentConverter = New GdPictureDocumentConverter() Save the output in a new PDF document. Using GdPictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter()












Tiff to pdf