Using the API to convert Microsoft Word doc in PDF/A?
I have a Delphi application in which I generate a PDF from a MS-Word document.
To create a PDF file, I use an API. Here is the part of the code (only what is interesting for now).
This API is Adobe Acrobat Professional 9.
What I want is to create a document using this API or any other PDF/A that should be here.
Any ideas?
Thank you.
Israel
Environment:
Delphi 7
Adobe Acrobat Professional 9
--------------------------------------------------------
var
AVDoc: Variant;
PDDoc: Variant;
ArqDOC, ArqPDF: OleVariant;
County: integer;
Start
ArqDOC: = "c:\temp\test.doc"
ArqPDF: = 'c:\temp\test.pdf ';
Try
AVDoc: = CreateOleObject ('AcroExch.AVDoc');
AVDoc.Open(ArqDOC, '');
Application.ProcessMessages;
County: = 0;
While (not AVDoc.IsValid) and (count < 15) don't
Start
Sleep (1000);
Inc. (Count);
end;
If AVDoc.IsValid then
Start
PDDoc: = AVDoc.GetPDDoc;
PDDoc.SetInfo ("Title", ");
PDDoc.SetInfo ("Author", ");
PDDoc.SetInfo ("Subject", ");
PDDoc.SetInfo ("Key words", ");
PDDoc.Save (1 or 4 or 32, ArqPDF);
Application.ProcessMessages;
PDDoc.Close;
end;
AVDoc.Close (False);
Finally
VarClear (PDDoc);
VarClear (AVDoc);
end;
end;
-------------------------------------------------
The use of AVDoc.Open () on any other than PDF format is not supported.
Tags: Acrobat
Similar Questions
-
Convert Microsoft Works doc to PDF format for email
How can I convert my Microsoft Works Word doc and the sheets in PDF format, so that I can their email succussfully? Now when I try to send, no one can open or view the attachment unless they use Windows Vista as well.
The game, August 12, 2010 03:22:01 + 0000, yellow Robot wrote:
How can I convert my Microsoft Works Word doc and the sheets in PDF format, so that I can their email succussfully? Now when I try to send, no one can open or view the attachment unless they use Windows Vista as well.
See MVP Jack's response, but I would add two things:
1. If you need a pdf authoring program, I recommend the free cutepdf.
2. the statement "no one can open or view the attachment unless they".
use Windows Vista as well"is not correct. What operating system that they
term is not relevant, and it doesn't have to be the same operating system
than the one that you are running.What version of Word are you running? In this case, Word 2007 or 2010, when
you save a document, the default format is not .docx. doc. If you are
send .docx (or .xlsx) files to a person running an old
version of Word or Excel, except if they have installed the Microsoft «»
Office for Word, Excel, and PowerPoint 2007 file compatibility pack
Formats.
http://Office.Microsoft.com/en-us/Word-help/open-a-Word-2007-document-in-an-earlier-version-of-Word-HA010044473.aspx
or http://tinyurl.com/29f5scyAlternatively, if you want to send files, you can save the files
in the formats .doc and .xls instead of the new .docx and .xlsx formats.
but make a "Save as" instead of a 'save' and choosing the elder
format.Thus, it may well be that you simply have to do the above and not worth
sending to all .pdf files.Ken Blake
-
After you convert a Word DOC to PDF units on rule change to points
Whenever I have turn a Word document (Office 2003) PDF using Adobe Acrobat 7.1.0 units on the rule under the toolbars to convert centimeters to points. So I have to change tools. It's no big deal, but I would be very grateful to anyone who has any idea how this can be avoided.
ktomica,
The link provided by Mike is 'Official' Adobe that acrobat updates the location.Because you're in 7.1.0 you need treat each version update 7 past 7.1.0 in sequence.
Do this sequence: 7.1.1 update the 7.1.2 and 7.1.3 7.1.4.
Be well...
-
When I use Acrobat 9 to convert a Word file to pdf, the converted document does not match the original, but leaves rather parts of the original Word document. Someone knows what to do?
I found the problem and solved by changing the conversion of PDF from Adobe
settings uncheck "enable accessibility and reflow with tagged Adobe."
PDF. "Thank you. John
The game, 00:23, 2 July 2015, Anubha Goel [email protected]>
-
How to convert a Word doc to pdf
File--> save money... in Word - all versions since Office 2008. Otehrwise there are a lot of PDF "printer" as the free Ghostscript. No need for a specific Adobe just for this product.
Mylenium
-
Why I can't use the trial to convert PDF to Microsoft Word files
Why I can't use the trial to convert PDF to Microsoft Word files
Hi cathiechua,
You should definitely be able to convert PDF files to Word using Acrobat format. What happens when you choose file > save as other > Microsoft Word > Word Document?
Best,
Sara
-
Can I convert a Pages, Microsoft Word doc?
Can I convert a Pages, Microsoft Word doc?
Normally, you should be able to simply open the .doc with Pages and then save it again in .pages format. Have you had a problem what do I do? Of course, you want to keep it as a .doc so that MS Office can always read (it cannot read .pages).
-
I'm trying to convert a word doc into a pdf file (which I've done 100 times) but now when I connect and press 'convert' after selecting the file it gives me a error message that says "player doesn't have the ability to access this service?
Install and use Acrobat Reader DC. You can not use previous versions more.
-
I really need someone to help me. I tried to figure out how to select a PDF to convert a Word doc. When I go to select a PDF file, all that comes is the WORD documents. doesn't show ANY of my PDF files... Please help me understand what is happening? We put it on automatic renewal so I know it's not that we have not renewed this subscription, because we pay automatically.
Hi olivias,.
Looks like there may be some confusion on your system which application should be associated with PDF files. You can reset the file name associations by following the steps described in these articles (depending on your operating system):
How to change the default application for a file type. Macworld
http://Windows.Microsoft.com/en-us/Windows/change-default-programs#1TC=Windows-7
Please let us know if you have any additional questions.
Best,
Sara
-
I've written in Arabic in PDF documents. I would like to convert in Microsoft Word. Unfortunately, I am unable to do so. Please help me in my quiery. Not Arab cast of Adobe PDF converter support?
Hi Yousif04,
If your document has attached fonts you can convert Microsoft word, which is quite possible. But if the fonts have been used to create the file are not present in the system Microsoft word is perhaps not able to retain the layout of the document.
There should not be any problem for ExportPdf service convert your document.
To check the fonts used for this PDF. Open a PDF in Reader or Acrobat. Click on file go to properties. Document properties windows will be displayed there is tab fonts. You will find the fonts embedded in the document.
Kind regards
Ajlan Huda.
-
How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.
Hi [email protected] ,
Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.
Also, let us know the acrobat version you have and the version of the OS on your system.
Let us know if that helps.
Concerning
Sarojini -
How to change the language setting in Microsoft word to generate a list of references?
How to change the language setting in Microsoft word to generate a list of references?
I use a Mac with the (traditional) Chinese language setting, and I need the reference generatinga list for my document in English!
If you don't get an answer here, try the forums devoted entirely to problems with MS applications:
-
I was working on a microsoft word doc and all of a sudden all paragraph marks and points between each word that presented themselves. How can I get rid of these?
You click the Show/Hide in the Standard toolbar. The location of this button may vary depending on the version of Word that you have (that you did not state). Click the button again to make the marks disappear.
-
When I try to update a software, it opens the page update in microsoft word
Any program I want to update such as Adobe Flash player or CCleaner opens in Microsoft Word. Even when I open a program and click search for updates, it opens to the top of the Web page in microsoft word. It happened spontaneously and I'm decent with computers, but I have no idea how to solve this problem!
Pleast help!
Just corrected it if you still need help. Go Control Panel - default programs - set your default programs. Select the browser you are using and Choose default for this program. Make sure that HTTP and HTTPS are checked... voila! Fixed!
-
I have Adobe Acrobat 9 Pro Extender. When I try to convert a Word file to PDF that says that it cannot find the drivers from the Adobe PDF printer and reinstall Adobe Acrobat 9.0. In addition, when I open just the program Acrobat 9 Pro Extender an error message comes up saying that a part of the Capture 3D plugin has been damaged. I went to customer service and they sent me here. Please tell me that this is not another race. I'm running out of patience! I have 10 window.
Acrobat 9 is quite old and not longer supported. The last Windows OS that could use Acrobat 9 has Windows 7 and Acrobat had to have all updates applied.
You need to upgrade to Acrobat DC.
Maybe you are looking for
-
Why is there a newer version that I installed (with automatic update)
Advice of ScanCircle I use the version of Mozilla Thunderbird 31.6.0 (x 86 en - us) 31.6.0, but the latest version is of 38.0.Ditto for Mozilla Firefox (x 86 en - us) where I am under 37.0.2, but the latest version here 38.0 also.My system is configu
-
Hello I am using a cdaq-9172 with a NI 9421 pass. I want to watch the first 4 bits as an integer and see in the shared variable engine. Any thoghts on how I could do this? I have tried to make a new global virtual channel but can select entry or entr
-
I can connect to my hotmail account but cannot open, delete or do anything else.
I can connect to my hotmail account but unable to open, delete or do anything else. I tried to reset Internet Explorer, nothing works. Even contacted Microsoft but because it's free hotmail, they sent me an e-mail with a link that I followed to the
-
error "secure boot is not configured" after the upgrade to windows 8.1... ???
-
All,Thanks in advance for the help.I'm not new to virtualization, but miss me something with vmware workstation (sitting on a XP machine)I have 3 virtual machine on the subnet 172.16.0.0172.16.0.98 - gw: 172.16.0.99172.16.0.200 - gw: 172.16.0.99172.1