|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
gbayard
Joined: 14 Feb 2008 Posts: 1
|
Posted: Thu Feb 14, 2008 3:44 am Post subject: Adding an Image from a Stream |
|
|
I would like to add an image to a MigraDoc Lite document from a stream instead of a file. Is this possible? I was able to add an image from a stream in an earlier version of PdfSharp using XImage.FromStream, but that appears to be gone also. Any ideas aside from saving the image to the local disk first? |
|
Back to top |
|
|
myro
Joined: 11 Feb 2008 Posts: 2
|
Posted: Mon Feb 18, 2008 9:22 am Post subject: |
|
|
Hello.
it looks like tha you can only get images from stream when you are creating a PDFsharp document.
This is not possible with migradoc.
You can save the stream on your hard disk using System.IO.FileInfo and then get the image throuth its path.
...i know,
this workaround suck.... |
|
Back to top |
|
|
|
|
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
|
|