![]() ![]() The ExportAsFixedFormat method does that, but some other methods don't. I think that probably the way to do that is to figure out how to use Adobe's tools via VBA (is there a supported method?), but I'd be perfectly happy with the built in Word method if I could solve the problem of it failing with large documents.Įdit: I should also have mentioned that I need my Word headings to end up as PDF bookmarks. Could you let us know if you are trying to export pdf in Adobe Reader desktop application or online using a web browser at this link: If using Reader, try exporting pdf using a web browser and check if that makes any difference. Is it actually possible to do this? It doesn't seem like it should be rocket science, but I am failing to find anything that works.Īll I want to be able to do is to reliably create pdfs from large Word docs. I hate to think what it would be like with a 5000 page document. When I tried it, it worked, but it was painfully slow, even with documents of just a few pages. Retain Flowing Text: Specifies that text flow must be retained. The following options are available when you click on the (settings) icon: Layout Settings. In Acrobat, go to Tools > Export PDF and select Microsoft Word or Word 97-2003 Document. That also came with a warning that it wasn't supported. You can export a PDF to Word format (DOCX or DOC) or Rich Text Format (RTF). I then discovered the AcroExch.AVDoc and AcroExch.PDDoc objects, which looked like it might be another way. See here:Īnd indeed when I tried it, it didn't work. I discovered the CreatePDFEx method, which in theory looks like it should do what I want, but I also discovered warnings that this is not a supported method and is not recommended. I've been trying to figure out how to automate the conversion to PDF from VBA using Acrobat, and banging my head against a brick wall. It uses the actual Adobe Acrobat PDF conversion, and my PDF gets created without errors even on documents large enough to cause the ExportAsFixedFormat method to fail. You can convert your PDF to Word without Adobe using a web-based conversion tool like Zamzar, or even with Microsoft Word itself. If I do that manually by clicking on the export as pdf buttons within Word (I have Adobe Acrobat installed on my machine) then everything is fine. What I really want to do is use Adobe Acrobat to do the PDF conversion. Upload your Word document from your computer or drag and drop into the PDF convert box to start the convert to PDF process. My understanding is that the ExportAsFixedFormat method uses Word's built-in PDF creation methods. 3 In 2018, Nitro PDF Pro was used by more than 650,000 businesses. In 2018, it launched the Nitro Productivity and eSigning Suite. 3 In 2015, the company reported 1 million licenses sold. This works up to a point, but it tends to fail when creating a pdf of a large document (and some of the documents I'll be processing with this macro run to thousands of pages). Nitro Software was founded in Melbourne, Australia, by a team of three, as an alternative PDF software to Adobe Acrobat. The code I have been using to do this uses ActiveDocument.ExportAsFixedFormat. I am trying to write a macro that creates a pdf of a Word document.
0 Comments
Leave a Reply. |