Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, December 11, 2014 11:10:00 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)


Saving bitmap images as PDF pages is very easy using LEADTOOLS. It involves as little as one line of code:
rasterCodecs.Save(RasterImage, "Filename.pdf", RasterImageFormat, BitsPerPixel)


The RasterImageFormat parameter controls the compression type, and can be one of the following:



Format
Compression type


RasPdf
Uncompressed. Not recommended for most applications because it produces large page size.


RasPdfCmyk
Also uncompressed but with CMYK colors.


RasPdfG31Dim
Fax G3 1D Compression. Only bitonal. (2 color black and white)


RasPdfG32Dim
Fax G3 2D Compression.Only bitonal.


RasPdfG4
Fax G4 Compression.Only bitonal. Very good for text-based images.


RasPdfLzw
LZW Compression. Supports different BPP values.


RasPdfLzwCmyk
CMYK support and LZW Compression.


RasPdfJpeg
JPEG 4:4:4 Compression.


RasPdfJpeg422
JPEG 4:2:2 Compression.


RasPdfJpeg411
JPEG 4:1:1 Compression.


RasPdfJbig2
JBIG2 Compression. Great for B/W text-based. Usually higher compression than Fax G4.


RasPdfJpx
Jpx Compression.


PdfLeadMrc
A single PDF page can contain various segments with different BitsPerPixel values and different compression types, based on the content.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.063 seconds.