Word to PDF - Performance

Hello,
We have a written a custom application in .NET that converts a set of word document to pdf. The PDF generation piece is taking about 10 to 15 secs per document, and also causing few performance issue in terms of CPU usage and not being able to open WORD or PDF in the desktop pc when the application is running.
Below is the piece of code for WORD to PDF generation logic. Please advise if there are any issues in the way the API being used, and  also recommend if there is any alternate way that could generated PDFs  with a minimum time.
        Dim AcroApp As Acrobat.AcroApp
        Dim AcroAVDoc As Acrobat.CAcroAVDoc
        Dim AcroPDoc As Acrobat.CAcroPDDoc
        Dim openDoc As Boolean
            AcroApp = CreateObject("AcroExch.App")
            AcroAVDoc = CreateObject("AcroExch.AVDoc")
            AcroPDoc = CreateObject("AcroExch.PDDoc")
            For Each docFile As String In Directory.GetFiles(ConfigurationSettings.AppSettings("mailmergeletterspath"))              
                openDoc = AcroAVDoc.Open(docFile, "")
                AcroPDoc = AcroAVDoc.GetPDDoc
                AcroPDoc.Save(1, Path.Combine(ConfigurationSettings.AppSettings("doc2pdfpath"), Path.GetFileNameWithoutExtension(docFile) & ".pdf"))
                AcroPDoc.Close()
                AcroAVDoc.Close(True)
            Next
Thanks,
Ashok

Hi, Thanks for that clarification. Could you please help me out or provide some guidance on what would be right way to accomplish this? Any reference to documentations would be appreciated.
Thanks,
Ashok

Similar Messages

  • Illustrator to Word to PDF

    Hi Everyone,
    I need help publishing a PDF from a Word document full of diagrams created with Adobe Illustrator CS6. My diagrams are all vector. I am free to export them anyway I like. My Word doc has many cross-references, footnotes and Endnote references and a large table of contents. It is a few hundred pages long, with around 50 diagrams. I would like to preserve the original quality of the vector art and the intra-document clickable links.
    Each step in the process has multiple possible paths, and each path often many options. There are 3 steps:
    1) Export from Illustrator  to: .ai, .pdf, .eps, .wmf, .emf
              optional 1b) Convert (eg. use Acrobat to convert .ai to .doc, .eps or .ps)
    2) Import to Word: drap and drop, file cut and paste,  insert picture, insert object, insert object linked to file, PDF Reflow (Word 2013). I tried them all.
    3) Publish to PDF from Word. Many different paths...
      - Print to PDF:  I have AdobePDF, PDFCreator, NovaPDF printers installed
      - Save as... : Save as->AdobePDF or Save as->PDF or XPS
      - Plugin toolbars: Acrobat->CreatePDF, NovaPDF->Save as PDF, PDF Architect->Convert
    or
      - Save as .doc and convert with Adobe Acrobat.
    I have tried many different permutations. There are 4 possible errors:
    E1 - The diagrams are converted into bitmaps.
    E2 - The diagrams are 'linearised' - curves are converted into chains of linear sections
    E3 - The diagrams are corrupted - text missing, characters changed, dotted lines become solid lines etc.
    E4 - Hyperlinks are lost.
    Here are some results of my tests.
    I see no difference so far between Word 2007 and Word 2013. Results below stand for both.
    There is no difference between Word->Acrobat->CreatePDF and Acrobat->Convert Word to PDF.
    Illustrator -> AI -> Acrobat -> Word almost works, but diagrams are corrupted in various ways (eg. dashed lines become solid).
    When export from Illustrator as EPS level 2, EPS level 3, EMF, WMF and PDF and get different results depending on the path to PDF:
    No links preserved:
    Word->Print to AdobePDF:    Good: eps2, eps3, emf    Bad: PDF (E1), wmf (E2)
    Word->Print to PDFArchitect: Good: eps2, eps3, emf    Bad: PDF (E1), wmf (E2)
    Word->Print to PDFCreator:  Good: eps2, eps3, emf    Bad: PDF (E1), wmf (E2)
    Word->Print to NovaPDF:      Good: -  Bad: eps2 (E2), eps3 (E2/E3), emf (E3), PDF (E1), wmf (E2)
    Word->Toolbar->PDFArchitect: Simply prints with current postscript printer. One of above.
    Links preserved:
    Word->Save as AdobePDF:  Good: -  Bad: eps2 (E2), eps3 (E2/E3), emf (E3), PDF (E1), wmf (E2)
    Word->Save as PDForXPS:  Good: -  Bad: eps2 (E2), eps3 (E2/E3), emf (E1), PDF (E1), wmf (E2)
    Word->Toolbar->Acrobat:    Good: -  Bad: eps2 (E2), eps3 (E2/E3), emf (E3), PDF (E1), wmf (E2)
    Word->Toolbar->NovaPDF:  Good: -  Bad: eps2 (E2), eps3 (E2/E3), emf (E3), PDF(E1)
    So, only the "Word->Print to PDF" pathways provide good quality vector diagrams, but none of these preserve intra-document links.
    Please, anyone have a solution for this?
    Kind Regards,
    MM
    ps. I have:
    - Adobe Creative Cloud CS6 (Illustrator, Acrobat etc. all latest versions)
    - Word 2007 (latest version (SP3 12.0.6683.5002))
    - Word 2013 (Office 365 latest version)
    - Access to a Mac with Word 2011.
    - and I am happy to install any software that may help me achieve my goal.

    Hi,
    > This doesn't really have anything to do with what formats you use
    How so? Every format produces different results. EPS level 3 is unusable, EMF is unpredictable, and EPS level 2 is consistent, but curves are converted into small line segments. If I have to choose one, then I need to understand the pros and cons of each.
    Second, given that there's a difference between EPS level 2 and 3, it's clear that the export options in Illustrator do make a difference.
    > it's simply inherent in how Word deals with this stuff based on its internal resolution handling.
    I don't think it has anything to do with resolution. It is more a question of whether Word re-interprets the data, and in the process corrupts or alters it, or not. We can see that when a Print to PDF is performed, it passes the data through without alteration perfectly.
    It's only when I use one of the Save to PDF paths that it corrupts the vector data.
    If I didn't need hyperlinks, I wouldn't have a problem.
    Essentially what I need is for the diagrams to be embedded as post-script in the Word document without being re-interpreted.
    > PNGs for the diagrams would be much more reliable.
    No thanks. I have created lots of lovely vector diagrams and I would like to keep them that way.
    EPS level 2, even without true curves, still looks better than a bitmap.
    > Otherwise you might consider using MS Publisher
    I repeated the same tests above with MS Publisher. Everything was converted to bitmaps. This route is a dead-end.
    So, for a 300 hundred page thesis, full of vector diagrams as well as cross-references, Endnote references and footnotes, what software do people recommend?
    MM

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • Can I use word and PDF on my iPad with icloud

    Can I use microsoft word and pdf files from my PC on my iPhone and iPad if I'm using iCloud?

    Microsoft does Not make an iPad compatible version of their Office programs such as Word and Excel.  But as Johnthe AppleFan pointed out, you can use Apple's Pages to to open Word Files.
    Hope this helps

  • I have iCloud set up on my iMac,iPhone and iPad. How do I use the storage in iCloud? Can I upload Word and pdf files?docs?

    My iPad and iPhone have iCloud icons. How do I access iCloud from my iMac?
    How do I take advantage of the free storage? Can I upload photos,Word and PDF docs?

    Open contacts on your phone and check your groups.  Do your contacts belong to any non-iCloud groups such as On My iPhone, a Gmail, Yahoo or Exchange account, or anything else?  Also check Settings>Mail,Contacts,Calendars>Default Account (in the Contacts section).  What is selected as your default account?

  • How do I find and replace a word in PDF?

    How do I find and replace a word in PDF?

    In the Find window (Ctrl+F) there's an option to replace the searched text.
    This is in Acrobat XI, and there's no Replace All-function.
    On Thu, Jan 15, 2015 at 4:27 PM, claireb88184899 <[email protected]>

  • How to upload documents( like word, excel, pdf etc) into r/3 system

    Hi All,
               Does anyone have information on uploading and downloading documents like word, excel,pdf etc into R/3 system. Is there any function modules, classes, programs etc to do this.
        To give an example about what i mean by uploading documents, we can take the process of attaching documents in support of a SLM issue in solution manager.

    Hi Syed,
      Use the FM gui_upload to upload a file from presentation server and gui_download to download file to presentation server. see the code below and also read the documentation of the respective FM's.
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lw_file
          FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        tables
          data_tab                      = t_kna1
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *     BIN_FILESIZE                  =
          FILENAME                      = lw_file
          FILETYPE                      = 'ASC'
    *     APPEND                        = ' '
          WRITE_FIELD_SEPARATOR         = 'X'
    *     HEADER                        = '00'
        TABLES
          DATA_TAB                      = t_KNA1
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
      IF SY-SUBRC = 0.
        message 'file downloaded successfully' type 'S'.
      ENDIF.                               " IF SY-SUBRC = 0
    With luck,
    Pritam.

  • Trying to convert word to pdf and getting error message using Ver. 7

    I what sent a word doc by a correspondent of mine which I tried to convert to a pdf. I right clicked the doc on my desk top and chose "convert to PDF". It looked as it has all the other times but after it had opened word it came up with an error window/message of "Missing PDFmaker files." "Do you want to run the installer in repair mode?" and then a yes or no button. If I hit no it closes everything if I hit yes it acts like it's installing something and after a while it tells me that the computer needs to be restarted for changes to take affect. I have run it twice now and it doesn't change anything.
    can someone give me any tips on this?
    D

    You did not indicate the version of WORD. If it is WORD 2007, then you can not do this function with AA7. Try opening the file in WORD and printing to the Adobe PDF printer. If that works, then look for the PDF Maker options in WORD (create PDF). If you find them, then try that. If they do not show but the print worked, then you indeed have an issue with PDF Maker - probably either the macro is not activated in WORD or the version of WORD is 2007.

  • Word to PDF does not keep hyperlinks in Table of Contents ?

    I have used my free trial of Adobe CreatePDF before purchasing the annual subscription.
    I was surprised to see that the PDF document did not keep the clickable hyperlinks that Word uses in a Table of Contents. As this is the exact same behaviour as the "Save as PDF ..." option that I have natively available on my computer I don't see the point of paying a subscription to the service. Or am I doing something wrong?
    MAC OS X Lion (10.7.2)
    Office for Mac 2011
    150-page .doc document with Section, Chapter, and various Heading Styles defined
    WORD automatically-built Table of Contents
    In the WORD document, the page numbers in the Table of Contents are hyperlinks to the concerned page
    Convert WORD to PDF using "Save as PDF ..." option in the "Print..." dialog box
           ====> Table of Contents hyperlinks are not preserved (the page numbers are no longer clickable)
    Convert WORD to PDF using Adobe CreatePDF
           ====> Table of Contents hyperlinks are not preserved (the page numbers are no longer clickable)
    Am I missing something or is this the way it is intended (not) to work?
    P.S.: I know that, on the MAC, I can use Preview to manipulate the PDF document I obtain through "Print..." > "Save as PDF...". One of the things I can do is to select the page numbers in the Table of Contents and add a 'link' to each. But this is a VERY cumbersome process. Actually, I have to create a link for each page number, one at a time, on a table of contents that may consist of in excess of 50 entries. As I have a collection of 50-odd documents and am on a schedule of distributing new versions every two weeks or so, this procedure is completely unusable. Hence my search for a (paid) service that converts my documents while preserving the hyperlinks of the Word-created Table of Contents. Either I am doing something wrong or such service does simply not exist ...

    Good day fgrexsg,
    You are correct in that the workflow you described will not produce links in the resulting PDF files.  The steps that Lori outlined work great if you're working on Office for Windows in terms of getting the links to work when converting using the CreatePDF service. 
    In order to make this work on the Mac, you'll have to take a few extra steps within Office first.
    You're going to have to repeat this step for each item in your TOC.  While this will be time-consuming for a 150-page document, it will work.
    Within your TOC, highlight the entire entry listing (e.g. Topic 1.........3)
    Once the entire line is highlighted, choose Insert > Hyperlink
    Click 'Document' to select a location within the current document.
    Under the 'Anchor' option, either type in the Heading/Sub-heading (must be exact) of the page you want the hyperlink to attach to or click 'Locate' and find the proper Heading/Sub-heading within the structure.
    As I said, this will probably be time-consuming on such a large document, but it will work. 
    Unfortunately Office for Mac just simply isn't as full-featured as its Windows counterpart.
    Please let me know if you have any questions.
    Kind regards,
    David
    Acrobat Community Manager
    Adobe Systems

  • How to send a 100 plus page MS Word Report with Word and pdf. attachments?

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume
    If your mail service allows all of that to be sent as attachments or however you are attempting that then it's possible the email server or servers receiving the email do not allow attachments that large.
    You say you are sending "a combination of MS Word and pdf files and attachments". I've never sent anything like that. I have zipped various files into a zip file then attached that to an email for sending.
    Googles mail appears to allow a total of 25 megabytes of attachments in a single email.
    Yahoo mail appears to allow a total of 25 megabytes also.
    Microsofts mail appears to allow a total of 20 megabytes of attachments in a single email.
    Another option would be to upload everything to your onedrives public folder and provide a link for others to download all of it in the email you send out.
    A single users onedrive supposedly can have up to 10 gigabytes loaded onto it. I suppose all of that could be used by the public folder but maybe not.
    La vida loca

  • If you need to send more than one document via email to a recipient with a PC, how do you convert them to a Word or PDF before sending them in one email?

    When trying to send an email to a PC user and need to send multiple documents, in the old version of iPages, you could save the document as a Word or PDF file then attach them to the email.  I don't see how to do this with the new version.  Therefore, the only way I can see to accomplish this task is to go to each document and send them individually in another version.  Otherwise, the PC user will not be able to view the documents - correct.  There must be a way to convert and save the documents like before so numerous documents can be sent at once.  Please help!
    Melody

    What fruhulda said. In addition, in the Mail composition window, I recommend that you select the paperclip icon from the Toolbar, and enable Send Windows-Friendly Attachments.
    You can also select multiple files in the Finder and drag them onto the composition window. In my experience, the documents resist an iconic state, so right-click on just one, and choose View as Icon from the contextual menu. This will transform all attached documents into icons.
    If you want to send just one document from within Pages v5, use the Share icon in the Toolbar and select Send a Copy > Email. You can then choose PDF (and its image quality), or Word (.docx default, or .doc) document formats that will be attached as an icon in a new pop-up Email composition window.

  • Page numbers are not generated correctly when print from Word to PDF

    Whenever I print my Word document to PDF, my page numbers do not reflect the page numbers shown in Print Preview.
    For example, I have a Word document with 10 pages and after generating it as PDF, the page number shows Page 1 of 1; Page 2 of 2; Page 3 of 3; ......Page 10 of 10.
    Please advise what may be the cause and how can I rectify this problem?
    Thank you.

    Thank you for your reply.
    I do have some sections breaks on the pages, however the pages are all shown in running sequence even on Preview page.
    It is the final generated document that has this problem.
    I emailed my colleagues my WORD document and ask them to generate to PDF and they have no issues printing the WORD to PDF and every pages were in running order.
    Any other advise?

  • Advange of using Adobe Acrobat over Microsoft word 2007 PDF add -in

    Hi,
    I would like to know what is the advantage of using Adobe Acrobat 9 standard or professional over Microsoft Word 2007 PDF addin. Microsoft will ship the PDF convertor with SP2 later this month, in that case what should be the use of using adobe acrobat to convert a document to PDF and not use microsoft word built in features.
    This is just a doubt which arouse and thought if I could ask here, thought to control some adobe acrobat licenses being used in our environment.
    Rgds
    Rahul Goel

    I have found that some of the links and other items just to not work well with the add-in from MS. However, with OFFICE 2007, it appears that MS has put some hooks in the system to screw up Acrobat. Typical pages that are produced with Acrobat get cut into sections (a graphic will be chopped into multiple graphics and pasted together). I say this is OFFICE only from the perspective that we have tried it with OFFICE 2007 and both AA7 and AA8 and gotten the same result. When we used the same file in OFFICE 2003 with AA7, the PDF was fine. So when you complain about the PDFs created by OFFICE 2007 and Acrobat, you may be seeing something that is a result of OFFICE, not Acrobat. Generally they still look good, it is only in some detail where you will see problems.
    A major advantage we found with Acrobat is that it did not have issues with messing up the links that the MS add-in had. You can try some of this yourself, but that is a summary of our conclusions. Bill

  • Word to PDF conversion does not retain left margin (for thesis submission to a university)

    Hi everyone,
    I've searched through the more recent margin issues posts and haven't found anything that exactly matches my problem.  I'm currently trying to convert my thesis from Word to a PDF (I'm using Word 2003 in Windows XP and Adobe Acrobat 8 Professional) as required by my university and the left side margin is changed from 1.5 inches to 1.25 inches during the conversion process.  Since this is for submission to a university, the margin has to be exactly 1.5 inches.  I've already tried to change the paper and page layout settings in case was an issue related to scaling (if only at this point) and I've reconverted the file in case it was a fluke (obviously it wasn't since I found my way here).  I also tried to just shift the margin in Word over an additional 0.25 inches to see if that would put it at 1.5 instead of 1.25 in Acrobat, but somehow it was still at 1.25.  It doesn't seem to matter what the margin is set at in Word, it ends up at 1.25 in Acrobat.
    I would very much appreciate any input- it would be nice if now that I've finished all the work on my thesis I could actually get it submitted properly so that I can get my diploma!

    What method are you using to generate your PDF from Word?  What version of Word are you using?  (edit:  sorry, I see now you mentioned Word 2003)
    Are you using the Word's PDF convert-to icon or are you using Print>Adobe PDF ?

Maybe you are looking for

  • Multi room viewing causes recordings and dvr functions to fail

    Configuration:  HD dvr's in both living room and bedroom. Watch a show in my living room from the bedroom dvr.  While I am viewing this a new recording starts on the living room dvr.  When I finish watching the bedrooom show and while the living room

  • Searching contacts in Outlook 2010 results do not include Public Folders

    When searching for contacts in Outlook 2010, connected to Exchange 2010, Public folders are excluded under "All Contact Items", however if changed to "Current Folder" in the scope of the ribbon bar, results are there instantly. Operating Outlook in C

  • Dbsnmp agent not running

    STATUS of the LISTENER Alias LISTENER Version TNSLSNR for Linux: Version 8.1.5.0.0 - Production Start Date 14-SEP-99 19:06:21 Uptime 0 days 16 hr. 9 min. 20 sec Trace Level off Security OFF SNMP OFF !!!!!!!!!!! SNMP-Status is OFF. I am using Oracle 8

  • Using an external microphone with a Mac Pro Tower

    I have a Mac Pro tower with OS 10.4.11 and I have a question regarding recording sound through an external microphone. I own a microphone with a 1/4" jack and when I plug it into the designated input on the back of my tower, I'm not getting any sound

  • Shrink the size of URL in SMARTFORMS

    Hi Friends, We want to output a URL, which is a bit long (about 100 characters). How do we shrink this and insert in SMARTFORMS. I know in HTML, we can do like <a Href  = "http://www.hotmail.com">Click Here</a>. Only Click Here will be shown and not