473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

print pdf document

Hi
Nobody know..how to print a existing .pdf file with c#. ( The idea is that
the application prints de .pdf without open it with acrobat reader )

thanks!
Nov 16 '05 #1
7 7040
Only PostScript commands is understood by the printer,
although PDF is very similar to PostScript a PDF cannot directly
be sent to the printer.
You should use the DDE interface of Acrobat/Reader.
I do not know of any other way.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Alexander Wolff" <aw****@concepto.com.uy> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi
Nobody know..how to print a existing .pdf file with c#. ( The idea is that
the application prints de .pdf without open it with acrobat reader )

thanks!

Nov 16 '05 #2
Dennis Myrén write:
Only PostScript commands is understood by the printer,
although PDF is very similar to PostScript a PDF cannot directly
be sent to the printer.
You should use the DDE interface of Acrobat/Reader.
I do not know of any other way.


[...snip...]

I'm quite sure the is no easy way inside C#. We made GhostView / gsPrint
print our PDF using System.Diagnostics.Process.Start().
Nov 16 '05 #3
Yes, that is a good idea.
However, GhostView is unfortunately not very common software
as opposed to Acrobat/Reader.
But, in a server environment, GhostView is definitely the approach.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Michael Voss" <mi**********@lvrREMOVE.deCAPS> wrote in message
news:418247a4@news...
Dennis Myrén write:
Only PostScript commands is understood by the printer,
although PDF is very similar to PostScript a PDF cannot directly
be sent to the printer.
You should use the DDE interface of Acrobat/Reader.
I do not know of any other way.


[...snip...]

I'm quite sure the is no easy way inside C#. We made GhostView / gsPrint
print our PDF using System.Diagnostics.Process.Start().

Nov 16 '05 #4


Here is a nice (and free) pdf library that was ported to C# from java that
may help you out some...

http://itextsharp.sourceforge.net/tutorial/index.html

-James
"Alexander Wolff" wrote:
Hi
Nobody know..how to print a existing .pdf file with c#. ( The idea is that
the application prints de .pdf without open it with acrobat reader )

thanks!

Nov 16 '05 #5

itextSharp does not work properly with HTML.
-----Original Message-----
Here is a nice (and free) pdf library that was ported to C# from java thatmay help you out some...

http://itextsharp.sourceforge.net/tutorial/index.html

-James
"Alexander Wolff" wrote:
Hi
Nobody know..how to print a existing .pdf file with c#. ( The idea is that the application prints de .pdf without open it with acrobat reader )
thanks!

.

Nov 16 '05 #6
hi,

I use with great success the Siberix PDF library. It's commercial, but
one of the best Libraries I've ever used...
Regards,

Martin

Alexander Wolff wrote:
Hi
Nobody know..how to print a existing .pdf file with c#. ( The idea is that
the application prints de .pdf without open it with acrobat reader )

thanks!

Nov 16 '05 #7
Hi,

mphanke wrote:
I use with great success the Siberix PDF library. It's commercial, but
one of the best Libraries I've ever used...


From Siberix' FAQ:

"Is it possible to print PDF documents using the library?
No, you couldn't use Siberix PDF Library to print PDF documents or pages. "

Greetings,
Ralf

Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dan | last post by:
This works in mozilla but I can't figure out why this won't work in IE. Say I have this html <html> header goes here header goes here
4
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
3
by: Craig | last post by:
First of all, this one is driving me crazy, so thanks in advance for any help!! I've got a javascript function in a parent document that generates an HTML document on the fly when a button is...
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
2
by: Asad | last post by:
I have a main window that creates a new window called printWin (which contains the printable format of the page). From the main window I embed a javascript in the printWin window that calls the...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
10
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
10
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.