Print PDF file without opening print dialog in asp.net - c#

I want to print my PDF file without opening Print dialog in ASP.NET Web forms.
My requirement is I have some PDF files on my server and I want to print that file on button click but without opening the Print window.
How can I achieve this?

The best you can do is concatenate the PDF files into one file and then print it, showing the printer dialog once at the beginning of the process. .NET PDF libraries that have this functionality.
PdfDocument.Combine("Output.pdf", "doc1.pdf", "doc2.pdf", "doc3.pdf");
Please refer this documentation may help you Print without Dialog

Related

How can I open in the Adobe Reader application("AcroRd32.exe"), a PDF online with url?

So my problem is I'm trying to open a PDF file to sign the document, but the document only exists online. To sign the PDF I would like to click in a Button and it would open the PDF that i want, but in the Adobe Reader application. So that the user could do whatever he wants in the PDF.
Need some help on the part of open a pdf that only exists online, but in the application od the adobe Reader.
Thanks any help!!
EDIT1:
So the problem is that my boss do not want the PDF to be download. He wants to click the button and open in the Adobe Reader Application...
In order to open the file from AdobeReader locally, you are going to have to copy at minimum a temp file locally. Otherwise, you would have to either create or use a web application that is capable of accessing these files. Either way whatever is accessing the PDF is going to need a copy to display whether it's on your local machine or on a server somewhere.
Any PDF that exists online can be downloaded. Once downloaded, you can open it in any PDF reader like AdobeReader. Are you sure you are not able to download it?

Print PDF file Silently

What I Want : A folder where every time thousands of PDF comes. I want to print that file using C#.
What will be the best option for me
Create a service
Create a windows application
I want that my service or windows application print the file silently means no popup to select the user to select the printer default it will print every page only once and I want to make this application, which will not be dependent on AcroRd32.exe because several users are not using Acrobat reader on their system.
I have already look these posts:
print pdf silently in c#,
Send multiple pdf files from one folder to printer. ASPOSE.PDF. C#
How can I complete this?

C# How to open doc/docx in Word application to a specified page

I want to open a doc/docx file to a specific page using Word.
Currently I use Process.Start() and can't figure it out with what to replace it for this job.
The purpose is just for viewing the document. I have a database based on fileLocation/pageNumber and this function must open the file directly to that page.
I would appreciate any solution/alternative.
Thank you!
Have you concidered workinig with interop? If so check the following
how can we open a word file with specific page number in c sharp?
Another solution would be to use a bookmark and navigate there as show in
How do I use the Microsoft Word API and Bookmarks feature to programmatically open a Word document to a specific location?

Print PDF which generated Dynamically without print dialog in silvelright

I know we can print page without print dialog box from one of my question in below link
Print Grid which generated dynamically in wpf
but right now my problem is I want to print PDF file without print dialogbox, because from above link i print Grid not a PDF doc and i am creating PDF file from rdl file.
In Silverlight 4 you cannot print anything without showing the Print dialog box. It is a security restriction that cannot be overridden.

Prevent user from printing/saving PDF file in C#

I am writing an application that views PDF files, this application uses AxAcroPDFLib AxAcroPDF
My problem here is that I want to prevent user from saving and/or printing PDF files that are being viewed in my application
Or in other words I want to hide toolbar of the PDF viewer
any ideas ?!
Thanx in advance
I solved the problem by using another plugin to view PDF files PDF Viewer
You can able to hide the toolbar by
axAcroPDF1.setShowToolbar(false);

Categories