PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Transparency!! https://forum.pdfsharp.net/viewtopic.php?f=2&t=656 |
Page 1 of 1 |
Author: | alt126 [ Mon Feb 23, 2009 3:58 pm ] |
Post subject: | Transparency!! |
Hi everybody...i am trying to covert to pdf from a component that i have to draw... I am exporting some shapes to a png picture file and after trying to importing into the pdf file....but the images are non transparent!!! How can i get it?? The pictures files are png and are transparents!!! I am using this: Code: document = new PdfDocument();
page = document.AddPage(); XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Append); XImage image = XImage.FromFile(path); gfx.DrawImage(image, new XRect(posx, posy, posw, posh)); Thanks |
Author: | alt126 [ Mon Feb 23, 2009 4:10 pm ] |
Post subject: | |
Well..i think my problem is that i need to put one image over other...i mean...i import one image that cover all document page...as a background and over it i need to import other images but need to be transparent but i find out that the images are imported as a white rectangle... thanks |
Author: | Thomas Hoevel [ Tue Feb 24, 2009 8:08 am ] |
Post subject: | |
Make sure to set PDF version to 1.4 (or higher) if you use images with transparency. (1.4 is the default with PDFsharp 1.2). |
Author: | alt126 [ Tue Feb 24, 2009 9:46 am ] |
Post subject: | |
well, when i show the document.Version...is 14...so i think that's the version!! The dll file is PdfSharp.dll and the version is 1.2.1269.0 But is it possible to show one image over other without white spaces between?? Can anyone send me an example or something...? i can even send you my images to test it!!! Many thanks |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |