Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: Inserting PNG images in PDF file
Conf: (P-PDF) Developers, Msg: 82073
From: aqua15
Date: 2/25/2003 11:57 PM

Hi ,

I am trying to insert a PNG image into a PDF file. For those who are aware of PNG image formats, I am interested in images with colortype = 2 and colortype = 6.

PNG images with colortype=2 has each Pixel described as an RGB triple

PNG images with colortype = 6 has each pixel described as an RGB triple followed by an Alpha sample.

The PDF file with the Image object looks something like this

13 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /im1
/Width 309
/Height 453
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Filter [/ASCII85Decode /FlateDecode] /DecodeParms [ null <<
/Colors 3
/Columns 309
/Predictor 15
/BitsPerComponent 8
>>]
/Length 14 0 R
>>
stream
......
endstream
endobj

The PDF is displayed absolutely fine when the stream contains data from a PNG image with colortype=2 , but fails when image is of Colortype=6.

There seems to be no corruption in the data parsed out from the PNG file. So I suspect it has something to do with one of the Image Properties in the PDF image object , may be the /ColorSpace attribute.

From the PDF spec I cannot figure out, what other properties must be included / changed to acomodate the colortype=6 PNG images. Does Acrobat reader support such Images in the first place ?

greatly appreciate any help or pointers provided.

Many thanks for your patience and help.


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.