Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
nokturnal  
#1 Posted : Tuesday, August 01, 2017 2:44:32 PM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 22

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hey,

I am struggling to figure out how to compress a Bitmap to JPG (that has been created in memory) and insert that compressed JPG into a PDF using version 9... DrawImage goes not support drawing a stream... I can insert the raw image no problem which results in a huge file... Do I have to bounce that compressed JPG to a physical file then open then insert that into the PDF? That doesn't seem right heheehe

Any help would be appreciated.

Edited by user Tuesday, August 01, 2017 2:48:54 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Tuesday, August 01, 2017 9:38:39 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 404

Was thanked: 12 time(s) in 12 post(s)
Hi,

There is no way to insert a stream to PDF.
Please take a look at PdfWriter.Compression property. If you choose CompressionType.Jpeg, your bitmap will be saved as JPEG.
Best regards,
Eugene Kosmin.
Aurigma Development Team
nokturnal  
#3 Posted : Wednesday, August 02, 2017 3:24:27 AM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 22

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Maybe I misunderstood... By setting the compression to JPEG, does that only compress any raster image data inside the PDF to PDF leaving the original vectors untouched (like text for example) or does it rasterize all vector data and save the entire PDF as a JPG...
Eugene Kosmin  
#4 Posted : Sunday, August 06, 2017 5:50:29 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 404

Was thanked: 12 time(s) in 12 post(s)
The property affects only raster data. All vector data is compressed with ZIP, and there is no option to change it. Graphics Mill doesn't support PDF text and write it as a vector data.
Best regards,
Eugene Kosmin.
Aurigma Development Team
Users browsing this topic
Forum Jump  
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.