PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 2:23 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: vector image Support
PostPosted: Wed Nov 07, 2012 3:24 pm 
Offline

Joined: Wed Nov 07, 2012 3:17 pm
Posts: 1
Dear PDFsharp team,

PDF has the big advantage for me of generating vectorized documents. (Text, images can be included as vector-item)
In combination with charting tools such as "System.Windows.Forms.DataVisualization.Charting" which can also save vectorized emf files it would be a great feature to be able to include those images.

Imagine a PDF document including charts that can be zoomed without any losses or pixeling.

thanks anyway for your excellent library!
Michael


Top
 Profile  
Reply with quote  
 Post subject: Re: vector image Support
PostPosted: Wed Nov 07, 2012 5:20 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
Hi, Michael,

You can do that already if you export the charts as PDF (instead of EMF).
You can use PDF pages just like images.

For charts from libraries, support for EMF or WMF would be nice.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: vector image Support
PostPosted: Thu Feb 06, 2014 4:04 am 
Offline

Joined: Thu Feb 06, 2014 1:39 am
Posts: 1
And how would one achieve that?

Been googling the internet on topic for a good day with no solid leads and would appreciate some help in this.


Top
 Profile  
Reply with quote  
 Post subject: Re: vector image Support
PostPosted: Wed Jul 16, 2014 11:44 pm 
Offline

Joined: Wed Jul 16, 2014 11:40 pm
Posts: 1
Simply this: But cannot show in document viewer. can see in exported PDF
Code:
Image image = section.AddImage("D:\\temp\\test.pdf");
       
      image.Width = "10cm";


Attachments:
Capture.PNG
Capture.PNG [ 17.41 KiB | Viewed 18587 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: vector image Support
PostPosted: Mon Jul 21, 2014 3:36 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
shareth wrote:
Simply this: But cannot show in document viewer. can see in exported PDF
This is not a bug, this is a feature. Document viewer only shows red rectangle as a placeholder.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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