Add Notes / Annotations
One great feature of PDF is the possibility to add Notes/Annotations to any existing PDF. Aloaha PDF SDK makes this even easier.
Please find a sample below:
dim pdf
set pdf = createobject("aloahapdf.edit")
if pdf.load_pdf_to_mem(cstr("c:\document.pdf")) = true then
if pdf.make_note(cdbl(left), cdbl(top), clng(type), cdbl(popupleft), cdbl(popuptop), cdbl(popupwidth), cdbl(popupheight), cstr(title), cstr(contents), cdbl(red), cdbl(green), cdbl(blue), cdbl(open)) = true then
call pdf.save_pdf_to_file(cstr(TargetPDF))
end if
end if
set pdf = nothing
Please note that make_note destroys any existing digital signature. In case a document has been signed please use the following call instead:
if pdf.add_inc_note(cstr(orig_pdfpath), cstr(savepath), clng(pagenumber), cbool(date), cstr(body), cstr(subject), cbool(opened), clng(px), clng(py), clng(pw), clng(ph)) = true then
.....
This function requires an evaluation key in order to work. Please request a key via the form below!
Aloaha Software / Knowledge Base / PDF SDK / Add Notes