PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
PNG images not shown in a table https://forum.pdfsharp.net/viewtopic.php?f=2&t=2259 |
Page 1 of 1 |
Author: | crypto_rsa [ Fri Dec 07, 2012 9:52 am ] | ||
Post subject: | PNG images not shown in a table | ||
I have a problem displaying PNG images in a table. They don't seem to work if there is any text before the table with the image. I have created two minimal samples. In each of them there is a table with just a single row and column and the only cell in it contains a PNG image. If I put a text before the table, no image is drawn in the PDF output. If I put it after the table, the image is drawn correctly. Actually I found out the only difference which makes it work is at the beginning of the generated PDF files (I was not able to add PDF attachments to the post). In the "correct" file there is a block Code: /ExtGState << /GS0 6 0 R /GS1 10 0 R >> In the "incorrect" file there is instead Code: /ExtGState << /GS0 6 0 R /GS1 11 0 R /GS2 12 0 R >> If I replace it with the "correct" block, the image appears in the PDF (no other changes are necessary). So it seems to be a problem with some graphic state. But I am no expert in PDF format, so the true cause might be something else. EDIT: Attached a zip file with the sample PDF files.
|
Author: | Thomas Hoevel [ Mon Dec 10, 2012 10:08 am ] |
Post subject: | Re: PNG images not shown in a table |
crypto_rsa wrote: I was not able to add PDF attachments to the post You can add ZIP files to your post (if they are small enough).Larger files can be submitted via e-mail. |
Author: | crypto_rsa [ Mon Dec 10, 2012 10:22 am ] |
Post subject: | Re: PNG images not shown in a table |
Thomas Hoevel wrote: crypto_rsa wrote: I was not able to add PDF attachments to the post You can add ZIP files to your post (if they are small enough).Larger files can be submitted via e-mail. They are now attached to the original post. |
Author: | crypto_rsa [ Mon Dec 17, 2012 8:07 am ] |
Post subject: | Re: PNG images not shown in a table |
Any ideas how to fix this, or workarounds? |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |