Showing posts with label PDF. Show all posts
Showing posts with label PDF. Show all posts

Saturday, March 04, 2017

How to Fix: Microsoft Print to PDF (or Microsoft XPS Document Writer) Printer Not Working

How to Fix: Microsoft Print to PDF and Microsoft XPS Document Writer Printer Not Producing Output File

Symptoms: Print to PDF or Print-to-XPS Fails Silently, with no PDF File Created or no XPS File Created, in Microsoft Windows or Microsoft Office

This Microsoft Windows and/or Microsoft Office bug (or Windows "Feature") drove me crazy for a bit of time — when I wanted to print a document or spreadsheet, I would choose Print, then select either "Microsoft Print to PDF" or "Microsoft XPS Document Writer" as my target printer, proceed with printing to a file, where I would be prompted for the filename and file-location (directory), and choose to "Save" the file, and, even though all indications were that printing was functioning correctly, no XPS or PDF file was created!

Maddening!  In the end, it turns out that actually, this appears to be an issue (or problem or bug or feature) with Microsoft Windows that has to do with how the Windows Printer Driver functions (or does not function or work in certain situations), in particular with some security settings that mess it up.  I was using Microsoft Windows 10 and Microsoft Office 2013 (running in a Vmware Virtual Machine — which I mention only because this bug also prevents printing documents to PDF or XPS files via Vmware's ThinPrint driver too).

This is my list of available printers, and the two virtual printers (print to PDF or XPS file) experiencing this problem printing to a file are highlighted with a green box:
Printers: including Microsoft Print to PDF and XPS Document Writer

The problem cause, and how to fix this printing problem...

This took some time to figure out, but the root-cause of this printing problem was file-system directory security settings. It turns out that both the Microsoft Print-to-PDF and Microsoft XPS Document Writer need appropriate permissions in your temporary directory.

I tend to redefine my default Microsoft Windows temporary directory to some easier-to-quickly-locate place, like, e.g., "C:\temp" or "C:\tmp" (vs. buried in their default user subdirectories).  It turns out that creating that non-standard / non-default temp-directory is what led to my particular problem with the PDF / XPS driver not working.

In Windows 10 (or Windows 7 or whatever), your temporary directory is defined under Control Panel, System Properties, Advanced, Environment Variables, User Variables / System Variables, with the Variables of "TEMP" and/or "TMP" pointing to your temporary directory of choice, and whereby I have remapped my temp dir to be "C:\temp" or whatever.  I never even considered that changing my temp directory could break my Windows Printing (to file) features!  But, it did!

So, how to fix the fact that PDF files and XPS files were acting like they were printing, but nothing is being generated, not even in the print-queue? Easy: set the permissions on your newly chosen temporary directory location as follows:

Here is what the default permissions on my custom temp directory looked like when the PDF and XPS files refused to print:

Default custom-temporary-directory permissions

Now, this is all it took to fix the problem — one simple check-mark (see green circle), changing the permissions on the temp directory:



That did it! Enabling Authenticated Users to have Full Control of the temporary-directory fixed the Microsoft XPS Document Writer and Microsoft Print to PDF feature.

It is hard to believe that a system-level print-driver needs some special permissions on a temp directory (the same directory all sorts of program installers and software update logs go into, etc.) in order to create a PDF or XPS temp file, but that seems to be the case.  And, without that permission, you click Print and nothing happens... no file is produced... no printing errors during the PDF / XPS production process, no indication of failure... just no file produced. Period.  Ughhh.  But, now I know. I hope this saves some readers a bit of time and frustration.

This issue was as crazy as the one that forced me to write a blog about How to Fix: "Unable to find Adobe PDF resource files" - Adobe PDF Converter.joboptions - in Acrobat Pro a while back.  Equally ridiculous.

Continue to read this Software Development and Technology Blog for computer programming articles (including useful free / OSS source-code and algorithms), software development insights, and technology Techniques, How-To's, Fixes, Reviews, and News — focused on Dart Language, SQL Server, Delphi, Nvidia CUDA, VMware, TypeScript, SVG, other technology tips and how-to's, plus my varied political and economic opinions.

Wednesday, August 15, 2012

Microsoft Office 2013 PDF / Open XML Support

Office 2013 to Finally Support Editable PDFs and Full OpenXML Standards

Open XML : FULL Support

Yes, the keyword of interest here is full. Since MS Office 2007, Microsoft has supported partial Open XML support — a la Transitional Open XML — which still allowed use of "legacy features" within those documents. Well, those transitionally-allowed legacy aspects essentially made true office-software-suite-neutral documents impossible, since proprietary functionality remained in this otherwise "open" standard.

Office 2007 could read such files, but it was not until Office 2010 before you could write these transitional Open XML formats. But, starting with Microsoft Office 2013, you will finally be able to read, edit, and write true strict Open XML document formats. It is about time! I have encountered files from Open Office / LibreOffice that I just could not fully interact with using just MS Word as I would have liked to.

Open PDF files as editable Word documents!

Woohoo! This one is a huge feature for me — the ability to open and edit the contents of PDF files (i.e., Adobe Acrobat Portable Document Format), and then save my changes as a Word document (or save again as PDF), is something I have wanted for a long, long time.

This ability to work more easily with PDF files from within Word 2013 may just be the feature that makes me upgrade to Microsoft Office 2013 when I was otherwise not planning to do so! I currently go through many extra steps to accomplish an approximation of this forthcoming capability, and having such support built into Office will be a big time saver for me.

Microsoft refers to this new feature as "PDF Reflow" and describes it as follows in this blog posting:
“With this functionality, you can transform your PDFs back into fully editable Word documents, rehydrating headings, bulleted/numbered lists, tables, footnotes, etc. by analyzing the contents of the PDF file.” The goal is not to make Word into a PDF reader or PDF editor. The goal is to help you to bring the contents of PDF files back into an editable format using Word 2013.

Microsoft Office File Format Support — PDF, ODF, Open XML

The following table is courtesy of Microsoft (from the above referenced blog posting). I like this visual chart / table / graphic for how simple it is to understand what each version of Office supports when it comes to interchangeability / interoperability by way of standard file formats.

Office 2003 Office 2007 Office 2010 The New Office
("Office 2013")
Binary format
(.doc, .xls, .ppt)
Open, Edit, Save Open, Edit, Save Open, Edit, Save Open, Edit, Save
Transitional
Open XML
Open, Edit, Save Open, Edit, Save Open, Edit, Save Open, Edit, Save
Strict Open XML Open, Edit Open, Edit, Save
ODF 1.1 Open, Edit, Save Open, Edit, Save Open, Edit
ODF 1.2 Open, Edit, Save
PDF Save Save Open, “Edit”, Save

I am now actually looking forward to Office 2013, which is definitely "news".

Continue to read this Software Development and Technology Blog for computer programming articles (including useful free / OSS source-code and algorithms), software development insights, and technology Techniques, How-To's, Fixes, Reviews, and News — focused on Dart Language, SQL Server, Delphi, Nvidia CUDA, VMware, TypeScript, SVG, other technology tips and how-to's, plus my varied political and economic opinions.

Sunday, November 01, 2009

How to Fix: "Unable to find Adobe PDF resource files" - Adobe PDF Converter.joboptions- Acrobat Pro

Have you found yourself facing an Adobe Distiller (Adobe Acrobat Pro) error message something like this recently, when trying to print / output to a PDF file from a non-Adobe application on Windows?
"Unable to find Adobe PDF resource files" that mentions the directory "C:\Documents and Settings\All Users\Documents\Adobe PDF\Settings" and the supposed missing file "Adobe PDF Converter.joboptions"?
Well, I ran into this, and after searching the Internet for fixes, I found a whole lot of people talking in vagueness about how to "fix" this, to say the least, and providing little real information about how to fix the problem at hand (and, the advice produced zero resolution to the problem). Well, I figured it out myself, and I hope this information helps you.

Symptoms / Setup
First, I am using Adobe Acrobat 7.0 Professional (with 7.1 update), as was installed via the Adobe Creative Suite CS2 software, and on my Windows XP Professional desktop machine that has Service Pack 3 (SP3) installed. Producing PDF files was never a problem for me, until at some point (perhaps SP3?) it just stopped working, and every time I tried to produce a PDF from various applications, it would prompt me about "Do you want to run the installer in repair mode? ", to which I (foolishly, hopefully) said "yes" to, which of course does NOT fix anything. [note: I hate software like that!!! What is the point of a "repair mode" that does not repair the issue at hand?]

How to Fix / Resolve
Well, if you are "Unable to find Adobe PDF resource files" because your Acrobat Distiller can not find the file "C:/Documents and Settings/All Users/Documents/Adobe PDF/Settings/Adobe PDF Converter.joboptions", let's get that file to exist!

It seems, from what I can tell, that Adobe Acrobat Distiller (i.e., the program that creates PDF files for you as a print-driver essentially), needs that EXACT NAMED FILE to exist, at that exact location. Never mind that you already have a "Standard.joboptions" file defined, and that logic would dictate SHOULD be used in the absence of the file "Adobe PDF Converter.joboptions"; you have to tell Acrobat 7.0 / 7.1 / 8.0 / etc that you really want that "standard" one to be used for performing conversions from certain non-Adobe applications that you are trying to "print a PDF from".

So, go to the folder mentioned: NOTE... THIS IS A HIDDEN FOLDER. So, to make things easy, presuming you installed on the "C:" drive, just copy and paste this following line to your Windows File-Explorer's address-bar, and you will go right to the folder, hidden or not:

C:\Documents and Settings\All Users\Documents\Adobe PDF\Settings
Now, you should see other ".joboptions" files in that directory already, and presumably you do NOT have the "Adobe PDF Converter.joboptions" there, or you would not be getting this error message.

Choose whatever ".joboptions" file makes sense as your "default" for printing PDF files from your various Windows applications, and copy it to a file named,... you guessed it: "Adobe PDF Converter.joboptions" (in this same directory) I chose the "standard.joboptions" file, and copied it.

Now, try to print / generate a PDF from whatever application was otherwise having a bug or problem printing PDF files because of this pesky "Unable to find Adobe PDF resource files" Adobe PDF Converter.joboptions message and "run in repair mode?" not-a-fix option...

With luck, YOU CAN NOW PRINT A PDF from any application! (I sure hope so... it worked well for me!) What finally inspired me to FIX this issue on my desktop was when I was using the new VMware Workstation 7.0 feature called "Virtual Printer" which allows the guest VM's (virtual machines) to print to any installed host-printer (including, you guessed it, Adobe Acrobat / Distiller PDF printing!). Now I can print from ANY of my guest virtual-machines to an Adobe PDF file, using the host machine's installed Acrobat Professional 7.0 / 7.1, via a virtual-printer-passthrough mechanism. Sweeeeeet. But, this is a bit off topic aside from how cool it is!

Optional - Create your default PDF output-settings file first...
If you want to create a custom .joboptions file in this directory, just open up Acrobat Distiller, go to "Edit Adobe PDF Settings", and create a definition for however you want your default-output (when printing a PDF) to be, and "Save As..." whatever file name you desire. Then, copy THAT definition file to "Adobe PDF Converter.joboptions" in the directory I have been talking about here (which is where your new definition, by default, should have been saved during "save as" operation).

Final Thoughts...
From the types of web pages I was seeing when searching for a way to fix this "unable to find adobe pdf resource files" bug / feature, I noticed that it seems to occur with Acrobat Pro 7, Acrobat 7.1, Acrobat 8.0, and perhaps even Acrobat 9 (and Acrobat 6.0 ?).

So, hopefully this helps anyone trying to "solve the problem" on their machine with printing a PDF file and getting that darn message about running repair mode (which does nothing). If it helps, I would not mind a link to this page to promote a solution that really IS a solution (after all the time I wasted searching, and not finding one, I wish someone else would have promoted a real fix). Enjoy!