How to create pdf from word doc file

HI
I have a word doc file. (not docx). I have adobe 8 pro. I wrote a word script to create the file using the distiller. The fonts in the pdf file it makes look wacky. That script looks liek this:
* create archive pdf file
lfilename = "t:\cardeals\pdf\pdf_archive\" + PADL(alltrim(STR(month(date()))),2,"0") + PADL(alltrim(STR(DAY(DATE()))),2,"0") + SUBSTR(ALLTRIM(STR(YEAR(DATE()))),3,2) + "1.pdf"
oWord = createOBJECT("Word.Application")
oWord.DisplayAlerts = .f.
oWord.documents.open('t:\cardeals\cardeals.doc')
oword.ActivePrinter = "\\CSSSERVERONE\Overflow"
oword.application.printout(,,,,,,,4,,,,,,,,,,,)
oWord.PrintOut(.F.,.F.,,"c:\output.ps",,,,,,.F.)
oPDF = CREATEOBJECT ( "PDFDistiller.PDFDistiller.1" )
oPDF.FileToPDF("c:\output.ps", "&lfilename.", "High Quality" )
oWord.application.quit
release oword
I also wrote a script to attempt to print it from the Adobe printer. It seems to work, but when I go to open the created pdf file it I get the following message:
Acrobat could not open mypdf.pdf because it is either not a supported file type or because the file has been damaged.
The code was this:
  Set oWordApp = CreateObject("Word.Application")
    Set oDocument = CreateObject("Word.Document")
    oWordApp.Visible = True
    oWordApp.Application.WindowState = wdWindowStateMinimize
    Set oDocument = oWordApp.Documents.Open("t:\cardeals\cardeals.doc")
    strOutputPDFName = "c:\mypdf.pdf"
    holdprtrdefault = oWordApp.ActivePrinter
    oWordApp.ActivePrinter = "Adobe PDF"
    oWordApp.Application.PrintOut FileName:="t:\cardeals\cardeals.doc", _
        Copies:=1, _
        Range:=wdPrintAllDocument, _
        Item:=wdPrintDocumentContent, _
        Pages:="", _
        PageType:=wdPrintAllPages, _
        Collate:=True, _
        Background:=False, _
        PrinttoFile:=False, _
        OutputFileName:=strOutputPDFName
If I clkick on the PDFMaker icon iside word, the resultant file is BEAUTIFUL. Can I automate this from within word? If not, does PDFMaker have a command line utility that I could put in a batch file?

I don't have an answer, but you might get a better response in the scripting forum.

Similar Messages

  • Question re Create PDF from Word doc

    Hi
    I am trying to create a pdf from a Word document (Word 2007, Acrobat 8 Professional), and am having lots of trouble with images,fonts and document overhead. With the fonts, i generate the PDF by saying Create Pdf from the plugin in Word. I specify in the Preferences that fonts are not to be embedded. I then open the PDF and access PDF Optimiser -> Audit Space Usage, and it says that fonts take up like 20% of the document, however there are only like 10 lines of text in Arial (9pt), and 6 titles also in Arial (Bold). I dont understand why Font is taking up so much space considering that i have elected not to embed fonts (if i go to the Fonts section in the Optimiser, it shows both embedded and unembedded panes blank).
    With the images, i have 2 jpegs in the footer, that are compressed (JPEG -> Low). The other thing i am struggling with is the headers and footers, if i generate the PDF from the Word doc with Headers/Footers, then images take up over 15% of the document. Not sure if there is a way to add headers and footers within minimum impact of filesize? I have tried checking everything in the 3 categories of Dicard Objects, Discard User data and Clean Up. but the Document Overhead remains at 35%.
    What else can i do to get these filesizes reduced?I have been researching this for days and have not come across anything that has helped.I have tried to PDF print, i have changed the font to like Courier, ensured no thumbnails or bookmarks, ensured JPEGs are not embedded in the doc, tried Save As, Save As under a different filename - basically anthing you can find on the net i have found and tried, but still cant fix this!!!! please, if anyone knows acrobate 8 better than me / or knows what the problem is, please advise????
    Thanks very much.

    The colors and size in a graphic needs to be done in a graphics editor. What type of editor would depend on the use of vector graphics versus bitmap. Sometimes vector graphics are larger than bitmaps if you are using a lot of lines that would display better as just a splotch of color. Such are the variations between vector and bitmap graphics, but important if you are looking for size reduction. For a bitmap, I would do the sizing and color depth with IrfanView, but you should be able to do that with PhotoShop if you have it. Vector graphics can be adjusted in Illustrator. The size of vector graphics is not an issue since they are scalable, but the size of a bitmap is important since your are looking at individual pixels and that depends on size. The point is that if you can adjust the color depth and size for the desired pixel resolution, the bitmap is optimized for the conversion to PDF from WORD.
    As I mentioned, the smallest file size job options should minimize font storage in the PDF. Checking with the PDF Optimizer does not always give you all of the fonts. I am not sure why. It is better to check the font tab in the document properties to see what has been embedded. There is a preflight macro to embed fonts, you might check to see if there is one to delete fonts (I have not checked on that). Sometimes you can play with the reprint of a PDF, but that is not an option that is generally recommended, particularly if you have any tagging or such. Of course, tagging can really bloat a PDF, but is needed for a variety of reasons such as format for saving back to WORD (not a great workflow), accessability, and related issues. In another topic, there is some discussion of the purposes of tagging and bookmarks. However, the tags and bookmarks take space if that is really an issue for you. The latter are avoided if you use the print to the Adobe PDF printer and do not use PDF Maker in the PDF creation process. Again, there is a trade-off here in terms of size and functionality, particularly accessibility compliance.
    Not sure I am helping as I run on, but sort what might be useful for you.

  • Error message- cannot create PDF from Word doc

    All of a sudden I cannot create a PDF from a Word doc. I click the Adobe icon and get the following error message:
    "PDFMaker could not locate the Adobe PDF printer. Please install the printer on this machine."
    I opened my print & fax in System Utilities and see that Adobe PDF 7.0 printer is listed. I select that in the Print Dialog, go back to the Word doc, but get the same error message. Any idea how I can fix this?
    Thank you--

    What versions of WORD. Is your AAX updated, or still running 10.0.0? What OS? Can you print to the Adobe PDF printer (i.e., is it just with PDF Maker that you are not successful). If it is a problem with PDF Maker, can you see the Adobe menu in WORD? As you may see, saying you cannot create a PDF from WORD does not tell us much and we need a lot more info to help.

  • Can't create pdf. from word doc when edited photos are included

    Or for that matter, from any photo which has been imported from my camera through lightroon, which happens everytime I  download shots to my harddrive. I create .pdf tutorials which include process shots and text; whnever I include shots which have come through lightroom, I get an error message telling me that the flies in question are in use with another application. There must be a workaround for this, right? Why can't an edited photo be included into a word doc and then converted to a pdf?

    You must have a program open with the image file or you would not get this message.
    I just did a test run. It works perfectly with my images. I tried it with a JPG and I tried it with a TIFF.
    Word imported them into the document and exported the document to PDF.
    The TIFFs  were created in Lr by exporting, and they are in the Lr catalog. So Lr is not the culprit for you rproblem.
    What I sometimes forget when I edit / change a Word document is that a PDF already created has to be closed. When I don't like my PDF and just go back to Word, do some changes and export again to the same PDF, i.e. overwriting the existing PDF, then the PDF cannot be created. The PDF that needs changing must be closed before another export can happen.

  • Acrobat Hangs Creating PDF from Word Doc - Possible Solution

    For the last several months, I had been working on converting a 20MB Word document into a PDF. The Word doc has external hyperlinks as well as many internal hyperlinks. It also has many sections and uses the TOC generator. I found that when I converted it to a PDF, whether I was using PDF Maker in Word or directly in Acrobat, the process would hang. In Acrobat it would hang either at 5% or 10%. In Word, the hang would occur before it processed the bookmarks.
    I believe I found the solution. When using PDF Maker, you are prompted about SmartTagging the document and how it can be time consuming. I always selected "No". Apparently, even with selecting "No", just having this prompt appear is part of the problem. When I went into the settings for PDF Maker and turned off SmartTagging there, so that when creating the PDF you are not prompted, the PDF creation is successful everytime.
    It took me many months of aggravation before I discovered this fix. I can replicate the issue everytime I let it prompt me about SmartTagging, so there is definitely some quirk going on there.
    HTH,
    Merg

    Hi,
    I'm facing the same problem, pdf maker hangs while "converting codes", this happens once in a while, i'm doing a .net batch conversion of about 2000 documents. (MS Word 2003 acro prof 7)
    Can you tell me where in the settings i find  samrt tagging
    (i'm am using only a fixed set of headings to create tags)
    Huubo

  • Barcode - Error creating pdf from Word doc containing Barcode 3 of 9  (any barcode font)

    I have been trying to creat a pdf from a word document that contains a barcode 3 of 9. Everytime I attempt to create the pdf I get an error "Adobe Distiller has stopped working"
    I have ...
    OS: Windows 7 Enterprise
    Acrobat X
    The Microsoft error info is
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: AcroDist.exe
    Application Version: 10.1.3.23
    Application Timestamp: 4f7bb7c6
    Fault Module Name: MSVCR90.dll
    Fault Module Version: 9.0.30729.6161
    Fault Module Timestamp: 4dace5b9
    Exception Code: c0000005
    Exception Offset: 0003b36a
    OS Version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
    I would appreciate any assistance and / or suggestions.
    Thank you.

    The PDF was not created. I actually did try creating a PDF of just the first 5 pages of the document which included no graphics at all, just straight text, and I got the same exact error with no PDF created. I've also tried removing the headers and footers and choosing another section of the document and still I get the exact same error with no PDF.
    If I create an entirely new document and type a bunch of text and try saving that as a PDF, it saves without a problem. But retyping my 200 paged document is not exactly an option. Merely removing a portion of the document, resaving it, and trying to create a PDF out of it doesn't seem to work either. I feel like it would be a whole lot of work involving a whole lot of time I currently don't have to track down the issue within the document. I would be happy if the software would simply replace the font, at least then I'd have an idea of where the problem lies. I believe there is also a setting to tell the program to warn of problems but create the PDF anyway. I marked that as well and it still failed to create a PDF. So far I can't seem to get any other error other than what I posted above no matter what I try.
    My apologies if I sound frustrated, the truth is I am. I thought this would be a simple process to convert the word document into a PDF. Who knew it would be the hardest part??
    Could you let me know what a binary search is? I'm not familiar with how to do this.
    thank you!

  • How to open pdf or word doc or notpad file in flex

    hai friends,
           how to open pdf or word doc or notpad file in flex. i am doing flexcoldfusion project. now i reterive data(notpad or worddoc or pdf file path) from database using coldfusion.now i want to open that file content .if i reterive notpad file .that will show in notpad. if it is possible. give example.
    regards,
    welcomecanv

    Hi WelcomeCan,
    Try this...
    var urlRequest:URLRequest = new URLRequest();
        urlRequest.url = "http://www.yourdomain.com/notepad.txt";
        //urlRequest.url = "http://www.yourdomain.com/FlexComp.pdf";
        navigateToURL(urlRequest,_blank);
    Thanks,
    Bhasker Chari

  • Acrobat Pro 9.1 no longer creates PDFs from Word 2007

    I upgraded from Acrobat 7 to 9 specifically to gain more control over settings when making PDFs from Word 2007. This worked as I had hoped until the 9.1 vulnerability upgrade was installed. Now it will no longer create PDFs from Word 2007 documents at all.
    From within Word 2007, when I click on "Create PDF" (whether in the Office menu or Acrobat toolbar) it asks for a file name, but after I click "Save" does nothing. This is true even for the simplest possible document, using the "Default" settings for PDF "Preferences."
    If I right click the file name of the document in Windows Explorer, with Word 2007 closed, and click on "Convert to Adobe PDF" in the menu, it starts and the staus box comes up, but after a few seconds quits and displays "An unexpected error occurred. PDFMaker was unable produce the Adobe PDF."
    I can still "Save As" PDF in Word 2007, but this gives me little control over the format.
    Is there any way that I can get Acobat 9.1 to do what I bought it for, and what Adobe advertises it will do?

    Try printing to the Adobe PDF printer, the more fundamental process (PDF Maker is a preprocessor for the printer). If that does not work, then try with print-to-file selected. Open the file in Distiller and see if the PDF is created. If the latter happens, then check for AcroTray running in the background. It is required to automate the process and is needed by PDF Maker.

  • Can't create PDFs from Word due to Cambria font. Help.

    I'm using win 7 32 bit office 2010 acrobat pro 9. I can't create pdfs from word because of problems with cambria. I've ttried all the fixes I can find but none worked. Any more ideas?
    [thread title updated by moderator]

    How are you trying to create the PDF? With AA9 you have to print to the Adobe PDF printer or use the MS plugin.
    When you say you cannot create PDFs because of Cambria, what error messages are you getting and copy them here? At this point we really do not know what you are having problems with or how you are trying to create PDFs.
    In the future, please provide a topic to help folks that are stepping through all of the posts. A blank topic almost led me to simply skip your post.

  • How to Create PDF from Illustrator CS3 by using applescript?

    Hi Guys,
    Do some one knows how to create PDF from Illustrator CS3 by using apple script. If know, please give me the scripting.
    HARI

    Have you tried File>Scripts>SaveDocsAsPDF? There should be a folder of sample scripts installed in your AICS3 folder and a folder of documentation which contains an Illustrator AppleScript Reference which has examples.

  • When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks

    When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks. I used to be able to do this in WORD 2003. I tried to create a PDF from Acrobat by selecting File > Create PDF >navigate to the WORD file > select three checkboxes >
    Any help with getting the TOC heading entries as hyperlinks?

    Try to do it from Word using the ribbon.

  • How to concert pdf to word doc

    ?help, how to convert pdf to word doc?

    Please look at the responses to your other post about this issue.
    There is no need to post multiple times.
    This is a User 2 User forum and we are not paid like Adobe Customer Service. Please respect the volunteering of the responders time.

  • Can't create PDF from Word file

    I may be missing some functionality or that functionality may not exist.
    I'm running Acrobat Pro 9.2 and MS Word 2004 (11.5) on OSX Leopard 10.5.8. I want to create a PDF from a Word file but NOT using the Print dialog. I want to either create it in Acrobat using File > Create PDF > From File or create it from within Word using the Acrobat menu/toolbar. This is so that it will end up as a tagged PDF.
    However, I don't have an Acrobat menu or toolbar in Word. I thought Acrobat was supposed to have installed these into MS Office when I installed Acrobat. And when within Acrobat if I select File > Create PDF > From File and choose a Word file, I get a message "Acrobat could not open 'filename.doc' because it is either not a supported file type or because the file has been damaged". This happens for all Word files.
    Looking in Acrobat > About Adobe Plug-Ins... under Convert2AdobePDF it says 'Loaded: no'.
    Are these two methods of converting Word files to PDFs something that can only be done in the Windows version of Acrobat? Or is there a plug-in or update I can download to install this missing functionality?
    Thanks for your help,
    Mark

    Keep your Office2004. But Office 2008 does have a way to create PDF's from within  the word and excel Programs.
    It works better than through the AdobePDF Printer, or through the Apple Print menus save as PDF. (Unless you have X.6.x Snow leopard)
    One thing it gets around is a long standing Problem Acrobat has had with word and excel since Word 6.0.1.a/Excel 5.0.1a. Acrobat doesn't know how to interpert Word Page section Breaks. Chopping up a word/excel document in to multiple PDFs that have to be merged back together. MS came up with their own PDF Converter that gets around that problem.

  • Cannot Create a pdf from Word Doc 2003  in Acrobat 8

    My first time out trying to create a pdf from word hasn't worked.
    I've tried several times, but either get some message that distiller cannot run when Acrobat is not active. Well, as far as I can tell it's staring me in the face.
    If I try to print from Word and set the page to pdf, it bombs almost the same way. Acrobat not active, bye. It brings up Acrobat anyway. Trying again doesn't help

    The PRN file is actually a PS file that can be processed by Distiller. Acrobat should not open when you process a file in Distiller unless you set some of the preferences in Distiller to open a completed PDF. To resolve your problem, I am taking you to the most basic aspect of creating a PDF with Acrobat. The process is to print to file using the Adobe PDF printer. Then start Distiller and open that file (labeled PRN but actually a PS file) to process. If a PDF is created you are on your way. Printing to the printer without using the print-to-file just automates the process so that you do not have to do the extra step of opening Distiller yourself.
    PDF Maker (the create PDF button) is simply a preprocessor for the printer above. Thus if the printer does not work, then PDF Maker will not work. AcroTray should be running as a background application (use ctrl-alt-del to see the background tasks on your system. AcroTray automates the process by recognizing a PRN file was created and starting Distiller to complete the process. If it is not running, then the only way to create a PDF is by printing to file as I mentioned. Thus, the print-to-file process is the basic step in testing your PDF creation capability. I am not sure how much more I can say. May others can make it clearer for you.
    As far as updates go, I never do them through the Acrobat menu, but download them directly from Adobe (at downloads>updates). I have the auto update turned off in every version I have.

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

Maybe you are looking for

  • Update to IOS5.1

    I had the worst experience while updating my Iphone4 to IOS5.x I had always been delaying this update decision, as I had a hunch that something unnecessarily wrong is going to happen - plus ofcourse I had an aversion to using archaic technologies req

  • Printing text to form using Pages

    I have a paper form that is 2.75 x 6 inches and I need to print information on it. The text would always be the same. How can I set this up. I have tried but no matter how I set it up the text prints in the middle of an 8.5 x 11 sheet not starting at

  • MacBook Pro kernel panic on wake from sleep

    I need some advice. Over the past few days, my MacBook Pro has been experiencing kernel panics when I open the screen and it wakes from sleep. The panic is immediate; there is no lag or time between opening the computer and the initiation of the even

  • Change language on ps cc

    My ps  is in German, I want to change it to English. How do I do that?

  • Why is the Linksys Help Number a Scam?

    Yesterday I call the Linksys Help number and got somebody in Arabia that I could barely understand to help me re-connect my Extenders (one was disconnected and the software wasn't working to re-connect it). Because this was the Linksys Help Number (g