How do I create a postscript (.ps) file from Word using Adobe version 9?

geeta_m9
geeta_m9 used Ask the Experts™
on
I was previously able to create a postscript file from MS-Word by way of Adobe PDF version 5. However, I am now using Adobe Acrobat Pro version 9 and the series of steps I used in the conversion process is different and I am not sure how I should proceed. I tried creating a file a couple of times, but the output was incorrect, with major parts of the text missing. A lot of the words only had the first letter appearing.  I have attached a file showing the steps I used before with Adobe 5. If anyone could show me what steps I should follow with Adobe 9, I would really appreciate it.

Thank you.


Postscript-Setup.doc
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Can't help you with the Adobe app but there are simpler ways to get PDF output
from Word or any app using a 'virtual printer'.  One (free) example is at www.dopdf.com.
You should get the complete content in your PostScript file - even with Acrobat 9. The Save As option should be sufficient (your last step). I don't know why you are changing the Distiller job options - your job will never even see Distiller. Distiller creates a PDF file from a PostScript file. You are just saving the file as PostScript, so Distiller is not involved.

There are settings for saving to PostScript, go to the Acrobat preferences and select the "Create from PDF" category, and then select PostScript. After clicking "Edit Settings", you can modify the export settings.

What do you do with the PostScript file? Where do you notice the missing characters?  

Author

Commented:
I initially tried the save as option in Word, i.e. Save as .PDF. Then I opened the PDF document in Acrobat 9 Pro and saved it as a postscript file. However when I run my job (a PL/SQL script) which opens and writes to the postscript file, only the first letter/character in each word is appearing.
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

So you are modifying the Postscript file? That is dangerous. Do you have a full Postscript parser available?

When you look at the Postscript before you modify it, does it look correct?

Author

Commented:
The PL/SQL program calls some homegrown library functions, uipdfcreate which writes the output of the variables to the postscript file and creates a pdf from it. For example,

uipdfcreate.P_Start(global_id);  

   uipdfcreate.P_PostVal(global_id, filename,
      'UIAPPLDATEXXXXXXXXXX', appdate, 1);
   uipdfcreate.P_PostVal(global_id, filename,
        'UINAMEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', uilib.name.student_name(global_id, 'F M L'), 1);  
   uipdfcreate.P_PostVal(global_id, filename,
      'UIIDXXXXX', uilib.id.student_id(global_id), 1);  
   uipdfcreate.P_PostVal(global_id, filename,
      'UIDIPLOMANAMEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', nvl(diplname, ' '), 1);  

The library functions begin with "ui". They worked before when I used Acrobat 5 to create the postscript file. It has to to with the way some of the PDF settings were set in the Acrobat Distiller, I believe
Again, the PDF settings have nothing to do with this: You are creating Postscript directly from Acrobat, without Distiller being involved. Even though Postscript is still Postscript, the way it is created in A9 is different from what it was in A5. You are expecting to find literal text strings in the Postscript output and are replacing them. That will only work when you know exactly what your Postscript code looks like.

I would never recommend to modify Postscript unless you know exactly what you are doing (meaning that you have a full blown PS parser and a solid understanding of the PS reference). There are other ways to get variable data into PDF files (e.g. with form fields). Have you looked into any other solution to create these files?

Do the files look OK before you modify them? I assume they do - which suggests that your modifications are doing something to the documents that corrupts them.

Author

Commented:
I tried creating a postscript file by using the Print to File option in Word to a laser printer, but I still get the incorrect output. I have never used a postscript parser. Where can I obtain one and how do I used it to check the output? I have not used postscript before.
If you are still getting the incorrect output when you just print - without using your software, there is something else wrong. Let's concentrate on that first. In the case of printing to file from Word, you are not even using Acrobat (or Distiller) - only the Postscript driver. Which driver are you using? What fonts are you using in your document? Are the fonts installed on the laser printer or are the fonts embedded in the file?

Author

Commented:
I installed a driver called HP LaserJet 4V/4MV Postscript from Windows. My document is using Arial font. I am attaching a copy of the document. It is actually a docx file, but I had to have it as a doc file here, otherwise I can't upload it.
gradapp.doc
Can you please also upload the Postscript file that the driver generates.

Author

Commented:
It won't let me upload a ps file here. Can I send it to you as a png file?
You can rename the file as .txt and then upload - at the end, it's just a text file.

Author

Commented:
Here it is.
gradapp.txt
The Postscipt file looks good. It contains all the data. Try to double-click on the PS file - that will start Distiller and will produce a PDF file. Look at that PDF file. It should contain the complete text. Does it do that for you?

Author

Commented:
Let me take a look and I will get back to you.

Author

Commented:
Yes, I obtained a complete PDF file (see attached). However, the problem lies not in the text in the document itself, but in the value of the variables which are output to the document where only the first character is showing.
gradapp.pdf
Oh, so it's only a problem after you modify the document. That means that something is happening when you change the Postscript. Would you be able to share a modified file. If you don't want to upload it to EE, you can also email it to me (my email address is on my profile page).

Author

Commented:
This is what I obtain when I run the job (see attached). Some of the output is missing.
gradapp-test-v4.pdf
The content is there, it's just not getting displayed because the font is subset embedded - only those characters which are used (in the Postscript file) are added to the PDF file. I just run a Preflight fixup to embed all fonts - even if characters are invisible, and that shows all the text correctly.

This means that you need to make sure that the fonts in your Postscript file are either fully embedded, or not embedded at all.

Author

Commented:
How do I do that?
Just as I suggested before, open the preferences in Acrobat and select the From PDF category and then Postscript. Go to "General" and make sure that "Font inclusion" is set to None. ALso, select ASCII and not Binary. Then open the PDF file (the one converted from Word), and do a Save As and select Postscript.

Author

Commented:
In my version of Acrobat, I had to go to File: Create PDF from File: Select .ps from the drop down list box:  Click on Settings button: Click on the Edit button before I can see the folders on the left. I don't see the option you are referring to in the General folder. Here is what my General and Font folders looks like.
General.JPG
Fonts.JPG
Go to Edit>Preferences - you will either see a menu item "General" if you have other plug-ins installed, or the preferences dialog show up directly. Then select the "Convert From PDF" category.
Select the "Postscript" entry and click on "Edit Settings..."
Select "Printer Description File" as "Device Independent", then select the General category and in the Settings dialog select ASCII and to not embed fonts.

Then go to "File>Save As" and select the fie type as Postscript. Then just save the file. This will generate a Postscript file out of the PDF file - similar to the steps in the your instructions for A5.

Author

Commented:
Sorry, I had to go to a class. Let me try it and I will get back to you.

Author

Commented:
The include comments checkbox is checked. Should I leave it as is?
You can leave that on. It should not make any difference.

Author

Commented:
I tested it just now. Unfortunately, I am still getting the same result (see attached).
degree-appl-test.pdf
Can you please also provide the Postscript file that you used to create the last PDF file.
You may have to edit your Distiller job options and make sure that fonts do NOT get embedded.

Author

Commented:
Here is the postscript file.

Where do I do the edit in the Distiller?
gradapp.txt
You are not exporting the Postscript file via "Save As" - it looks like you are still printing to file. Is there a reason why?
Try the "Save As" function and see if you run into the same problem.

Open up Distiller and select Settings>Edit Adobe PDF Job Settings.

Then, when you convert your Postscript file select a job settings configuration that does not embed the fonts - or one that fully embeds the fonts.

Author

Commented:
I thought I used the "Save As" option previously when saving as a postscript from pdf. Perhaps, I didn't. As far as embedding/not embedding the fonts are concerned, this is the only option that shows up (please refer to attached).
Embed-Fonts.JPG

Author

Commented:
Here is how the fonts option in Acrobat Distiller looks like.
Distiller-fonts.JPG
Select "None" on that dialog. Then, when you open the file in Distiller (after making your changes), make sure you select a job options file that also does not embed the fonts (or fully embed the fonts).
Unselect the "Subset Embed" checkbox.

Author

Commented:
When I unchecked the Embed all fonts and Subset embedded fonts checkboxes and clicked on the Ok button, it prompts me for a filename?? What  should I do about  this?
distiller-save.JPG
That is the filename for your modified job options - because you are trying to modify one of the built-in job options you cannot just overwrite the existing file, you have to store it under a new name. You could name it based on what it does with the fonts.

Author

Commented:
Ok. So in other words you are saying that I should open my postscript file in Adobe Distiller and then save it with the modified job options? Does this mean that the modified job options settings will apply to this file?
No, you first need to create modified job options (this you only have to do once).
Then, you open your Postscript file in Distiller to convert it to PDF using your custom job options.

Author

Commented:
Here is the postscript file I just created.
gradapp-test.txt

Author

Commented:
Ok. Here is the PDF file created from Distiller.
gradapp-test.pdf
It does not look like you modified the Postscript file with your software. Is that correct?

Author

Commented:
Probably so, because I should have generated the postscript file from  the new pdf file from the Distiller. Let me do that now and send it to you.

Author

Commented:
Here is the postscript file.
gradapp-test.txt

Author

Commented:
Didn't solve the problem, but I appreciate your taking the time and effort to help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial