Set PDF Information

One other great feature of PDF documents is the possibility of setting metainformation such as Subject, Keyword, Author. Such metainfomation could then read by the document management system to index the documents.

Please see the VBS code below to learn how to use this API.

dim pdf
set pdf = createobject("aloahapdf.edit")
if pdf.load_pdf_to_mem(cstr("c:\document.pdf")) = true then
     if pdf.set_PDFInformation(clng(PDF_InfoType), cstr(PDF_InfoValue)) = true then
          call pdf.save_pdf_to_file(cstr("c:\newdocument.pdf"))
     end if
end if
set pdf = nothing

The Variable PDF_InfoType can have the following values:

1 = Author
2 = Title
3 = Subject
4 = Keywords 

If you need to know how to read metadata from PDF documents or if you would like to access other types of metadata please contact us via the form below.




Company
Contact Person  
E-Mail
Telephone
Fax
Comment:

Please enter the code shown on the left in the following field: (This is to prevent automatic spammers)


Aloaha Software / Knowledge Base / PDF SDK / PDF Information
create PDF Software

PDF Information

Any questions?
Aloaha Software - PDF Information
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version