PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:36 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Alpha map
PostPosted: Thu Sep 06, 2007 10:06 am 
Offline

Joined: Wed Sep 05, 2007 4:39 pm
Posts: 1
Is there any way to draw a png with more then two transparency levels(1 bit)
in pdf document with Pdfsharp:?:

Thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 06, 2007 11:42 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
This should work.
AFAIK you need Adobe Reader 5.0 for this feature, so you have to set the PDF level in PDFsharp to 14.
Code:
        PdfDocument document = new PdfDocument(filename);
        document.Version = 14;


It works for some PNG files with transparency. If you have a PNG file that is not supported, please mail us a sample so we can add that format to PDFsharp.

See XGraphicsLab for some working examples.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 153 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group