Active9 months ago
You must be signed in to add attachments Email me when someone replies How to change default print settings adwul62. Jan 29, 2016. When printing a document to PDF, the colors were way too dark. After a lot of trying I have created new settings and saved that as a new printer-setting or profile (or how it is named). Now the colors are very close.
I developed a C#, web forms application that generates a PDF document server-side and sends it to the client. I generate the PDF using Microsoft Print To PDF(MPTP), PrintDocument, and PrintPageEventArgs.Graphics.DrawString. This works great on my local machine.
Enter server: When I uploaded my application and tried running it on my server, I get an error saying there's no printer installed. I check in Printers and devices and behold, MPTP isn't listed on the server (one fix for my problem is setting MPTP to default printer).
If you don't have the MPTP in 'Printers and devices':
- Open 'Turn Windows features on or off' and just check MPTP.
The problem is I don't have MPTP there either. To fix that:
- Open Devices and Printers
- Add Printer
- 'The printer that I want isn’t listed'
- 'Add a local printer or network printer with manual settings'
- Select port 'FILE: (Print to File)' (i tried other ports and it's the same)
- In the left (Manufacturer) part choose Microsoft, in the right part chose MPTP
It should install the drivers for MPTP, but the problem is I don't have MPTP on the list! This is the part that is problematic.
I can't find help for this problem online (couldn't find even unanswered questions). I couldn't find drivers online so I could install them manually and have no idea how to fix it.
I tried generating a PDF using CutePDF Writer and Spire.PDF (I did generate the PDF, but local characters aren't working [č,š,ž] and I have to use PdfDocument, PdfSection, PdfTextWidget). I don't like generating with Spire.PDF because I must implement the correct header and signature for multipaged documents (which is a pain in the ass and I would prefer using the already written and tested code that uses PrintDocument and MPTP).
And the last is to be reborn. Added: September 28, 2014In my lifetime, I've come to understand that there are three ways for a person to disappear. The second is to lie. Permalink:. Revenge season 4 full episodes. The first is to die.
Why is the Microsoft Print to PDF driver missing from my server?
Server info: Microsoft Windows Server Version 6.2 (Build 9200). Internet Information Services Version 8.5.9600.16384.
Stevoisiak7,6161212 gold badges5555 silver badges120120 bronze badges
Knez Drvene KlupiceKnez Drvene Klupice
3 Answers
@AlexK was right. I am new to working with servers and mistakenly thought it ran Windows 10 when it actually used Server 2012 R2.
The problem is I was googling 'Windows 10 print to pdf'. When I tried searching Server 2012 I found out that Print to PDF doesn't exist on Server 2012, which is why I couldn't find it.
How To Add Print To Pdf In Printer List Options
Stevoisiak7,6161212 gold badges5555 silver badges120120 bronze badges
Knez Drvene KlupiceKnez Drvene Klupice
A work-around is to first print to XPS using the Windows XPS printer, then post process convert the XPS file to PDF using GhostScript's GhostXPS utility.
In my C# applications, I use the System.Diagnostics.Process to setup the parameters and launch the gxpswin64.exe command line executable.
Here is an example:Convert XPS to PDF without Printer Driver
References:
gridtrakgridtrak
This isn't really a solution, but do I have a workaround for printing a document on Windows Server 2012 R2 if you have a Windows 10 PC you can use. Here are the steps:
- On the Windows Server 2012 R2 Machine, go to the Start Menu.
- Find 'Turn Windows Features On or Off' (Probably requires Admin privileges)
- The Server Manager will launch
- Installation Type > Role-based or feature-based installation
- Select local server
- Server Roles > Turn on Print and Document Services > Print Server
- Features > XPS Viewer
- Install
This will allow you to print to Microsoft XPS Document Writer which will create a '.oxps' file that you can save to the server. Copy that file to your Windows 10 computer and you can then:
- Open the .oxps file on the Windows 10 PC using the XPS viewer that is installed by default.
- Print > Select Printer > Microsoft Print to PDF
AdamAdam
Not the answer you're looking for? Browse other questions tagged windowspdfpdf-generationdriverwindows-server-2012 or ask your own question.
Unlike most other operating systems, Windows still doesn’t include first-class support for printing to PDFs. However, PDF printing is still fairly simple — you can quickly install a free PDF printer or use the support included in various programs.
We’ll cover ways you can easily print to PDF, whether you’re on a home computer where you can install a PDF printer or you’re using a locked-down computer you can’t install any software on.
Using Windows 10? There’s a Built-in Print to PDF Feature
If you’re using Windows 10, you’re in luck, because they finally included a print to PDF feature natively into the operating system. So you can just choose File -> Print from any application, and then print to the “Microsoft Print to PDF” option as your printer.
It’s possible that some other solutions might do a better job, but you should really try this option out since it doesn’t require installing anything.
Install a PDF Printer
Windows doesn’t include a built-in PDF printer, but it does include one that prints to Microsoft’s XPS file format. You can install a PDF printer to print to PDF from any application in Windows with a print dialog. The PDF printer will add a new virtual printer to your list of installed printers. When you print any document to the PDF printer, it will create a new PDF file on your computer instead of printing it to a physical document.
You can choose from a variety of free PDF printers available online, but we’ve had good luck with the free CutePDF Writer(Download from Ninite). Just download it, run the installer, and you’re done. Just be sure to uncheck the terrible Ask Toolbar and other bloatware during installation.
On Windows 8, PDF printers you install will appear both in the classic desktop Print dialog and the Modern printer list.
Use a Program’s Built-in PDF Export
Some applications have added their own PDF-export support because Windows doesn’t have it natively. In many programs, you can print to PDF without installing a PDF printer at all.
- Google Chrome: Click the menu and and click Print. Click the Change button under Destination and select Save as PDF.
- Microsoft Office: Open the menu, select Export, and select Create PDF/XPS Document.
- LibreOffice: Open the File menu and select Export as PDF.
You can generally create a PDF file from the print dialog or with an “Export to PDF” or “Save to PDF” option if the program supports it. To print to PDF from anywhere, install a PDF printer.
Print to XPS and Convert to PDF
Perhaps you’re using a computer that you can’t install any software on, but you want to print to PDF from Internet Explorer or another program without integrated PDF support. If you’re using Windows Vista, 7, or 8, you can print to the Microsoft XPS Document Writer printer to create an XPS file from the document.
You’ll have the document in the form of an XPS file you can take with you. You can convert it to a PDF file later with one of the following methods:
- Use an Online Converter: If the document isn’t particularly important or sensitive, you can use a free web-based converter like XPS2PDF to create a PDF document from your XPS file.
- Print the XPS File to PDF: Bring the XPS file to a computer with a PDF printer installed. Open the XPS file in Microsoft’s XPS Viewer, click File -> Print, and print the XPS file to your virtual PDF printer. This will create a PDF file with the same contents as your XPS file.
Quickly Create PDFs from Websites
If you’re using a computer without a PDF printer and you just want to print a web page to a PDF file you can take with you, you don’t need to mess around with any conversion process. Just use a web-based tool like Web2PDF, plug the web page’s address in, and it will create a PDF file for you. Tools like this one are intended for public web pages, not private ones like online-shopping receipts.
This would all be easier if Windows included a PDF printer, but Microsoft still wants to push their own XPS format for now.
READ NEXTHow To Add Print To Pdf Option In Windows 7
- › What Does “FWIW” Mean, and How Do You Use It?
- › How to Automatically Delete Your YouTube History
- › What Is “Mixed Content,” and Why Is Chrome Blocking It?
- › How to Manage Multiple Mailboxes in Outlook
- › How to Move Your Linux home Directory to Another Drive