PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Transparency!!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
alt126



Joined: 23 Feb 2009
Posts: 3

PostPosted: Mon Feb 23, 2009 3:58 pm    Post subject: Transparency!! Reply with quote

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
Back to top
View user's profile Send private message
alt126



Joined: 23 Feb 2009
Posts: 3

PostPosted: Mon Feb 23, 2009 4:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Tue Feb 24, 2009 8:08 am    Post subject: Reply with quote

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).
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
alt126



Joined: 23 Feb 2009
Posts: 3

PostPosted: Tue Feb 24, 2009 9:46 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com