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.




Please ask...

Although we really tried hard, there are always questions left open.

Please send us your question.
We would be glad to answer it.


Home / Knowledge Base / PDF SDK / PDF Information
Please ask...
create PDF Software

PDF Information

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