How do I send a PDF in a MemoryStream to the printer in .Net?
Posted
by Ryan ONeill
on Stack Overflow
See other posts from Stack Overflow
or by Ryan ONeill
Published on 2009-09-08T09:05:28Z
Indexed on
2010/03/08
21:21 UTC
Read the original article
Hit count: 325
I have a PDF created in memory using iTextSharp and contained in a MemoryStream. I now need to translate that MemoryStream PDF into something the printer understands.
I've used Report Server in the past to render the pages to the printer format but I cant use it for this project.
Is there a native .Net way of doing this? For example, GhostScript would be OK if it was a .Net assembly but I don't want to bundle any non .Net stuff along with my installer.
The PrintDocument class in .Net is great for sending content to the printer but I still need to translate it from a PDF stream into GDI at the page level.
Any good hints?
Thanks in advance
Ryan
© Stack Overflow or respective owner