Incorrect PNG format for PDF targets

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Incorrect PNG format for PDF targets

Post by Carsten Pedersen »

It seems that my favorite program is generating "wrong" PNG files.

The PNGs are however perfectly displayed in HTML Help and all other application I uses, but when placing them in a topic
and generating a PDF output the images are gone from the output?

If I take the PNG image and open it in MS Paint and then resaving it, then it works.

See attachments.

Visat x64
Flare v5.0.1

-cpede
You do not have the required permissions to view the files attached to this post.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Incorrect PNG format for PDF targets

Post by LTinker68 »

I don't see any difference in the PNGs.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Re: Incorrect PNG format for PDF targets

Post by Carsten Pedersen »

No the visual contents of the two PNGs is excactly the same. The file sizes however are different, indicating that the two
PNGs contains either different compressions or a different number of RGB and Alpha channels?
If you try to use the two files in Flare as a PDF target only one of them works. This indcates that the PDF image compression
fails to understand one of the formats.

-cpede
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Incorrect PNG format for PDF targets

Post by Andrew »

What program is generating the original PNGs? I use Capture (v4) for most of my PNGs for print (with a few cases of HyperSnap -- some ancient version). I have no problems with them in PDF output.
Flare v6.1 | Capture 4.0.0
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Re: Incorrect PNG format for PDF targets

Post by Carsten Pedersen »

The question is not as much what program I use, but why the PDF conversion fails in Flare?
It is my own program that generates PNG files using the ImageGear library. If seems
that different kinds of PNG files exist, and I'm generating one that cannot be converted.
The funny thing is, that when using the well known PDF995 print tool, it works, and when
I'm using XML and XLT formatters it also works for PDF output.
Somehow Flare is using a PDF converter that fails for this particular PNG format?
If I knew what the difference is, then I could probably change the way ImageGear saves
the PNG file internally in my program. Or even better, Flare could support the PNG format
correctly.

-cpede
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Incorrect PNG format for PDF targets

Post by Andrew »

I suggest reporting it as a bug, and sending MadCap samples of your PNGs. Let them know the PNGs work in other programs.
Flare v6.1 | Capture 4.0.0
Paul Griffiths
Sr. Propeller Head
Posts: 262
Joined: Wed Apr 18, 2007 2:25 am
Location: Nottingham, UK

Re: Incorrect PNG format for PDF targets

Post by Paul Griffiths »

FWIW, RoboHelp has, or at least used to have, a similar problem with handing differently-formatted PNGs.
cbdebris
Sr. Propeller Head
Posts: 105
Joined: Wed Aug 15, 2007 4:15 pm
Location: California

Re: Incorrect PNG format for PDF targets

Post by cbdebris »

We're noticing something similar as we use PNG files (built in Fireworks) as backgrounds on page layouts. Lots of problems in Flare 6 because it simply doesn't want to (1) render a PNG appropriately and (2) a PNG doesn't consistently display in the PDF output.

I'd be willing to bet that building a PNG in Photoshop would have the same effect. Gonna try that MSPaint workaround ...
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Incorrect PNG format for PDF targets

Post by ccardimon »

What is "Fireworks?"
Craig

Lost in Disturbia
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Incorrect PNG format for PDF targets

Post by Andrew »

ccardimon wrote:What is "Fireworks?"
And Adobe product that helps build UIs.
http://en.wikipedia.org/wiki/Adobe_Fireworks
Flare v6.1 | Capture 4.0.0
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Incorrect PNG format for PDF targets

Post by LTinker68 »

Andrew wrote:
ccardimon wrote:What is "Fireworks?"
And Adobe product that helps build UIs.
http://en.wikipedia.org/wiki/Adobe_Fireworks
It's similar to Illustrator in that you can create vector graphics, but it has a better method of taking a page of elements and transforming it into a web page, especially with mouseover effects. It used to be a Macromedia product.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
cbdebris
Sr. Propeller Head
Posts: 105
Joined: Wed Aug 15, 2007 4:15 pm
Location: California

Re: Incorrect PNG format for PDF targets

Post by cbdebris »

Update: Only one graphic displayed on the page layout after tinkering in MSPaint. The rest had to be manipulated in Capture. I found that by entering Capture settings for the graphics they displayed appropriately on the Flare page layout.

However ... there is a white background on the overlying text that obscures the PNG.

Update 2: If you "reverse out" the text (that is, hope to have white text on the background of a PNG), Flare cannot render that either. It renders the entire line of text as a solid white block!
All life is a blur of Republicans and meat. -- Zippy the Pinhead
Post Reply