I've looked at the help file examples and converted this script http://forums.adobe.com/thread/448868 but cannot get the annotations to show up
Idealy, I'd want them to be invisible, but when I get all the text from the page it's not in there either. Why is it failing to make the annot?
Autoit, very similar to Visual Basic
$oAcro = ObjCreate("acroexch.app") $oPDF = ObjCreate("AcroExch.PDDoc") $File = "pathto\test.pdf" $oPDF.Open($File) $oJS = $oPDF.getJSObject $oJSpdf = $oJS.app.opendoc($File) $iPage = 0 Dim $rectSize ; Determine where to place the annotation $page = $oPDF.AcquirePage($iPage); $page = $page.GetSize(); $rectSize = 25; $rectSize = $page.y - 50; $rectSize = $page.x - 25; $rectSize = $page.y - 25; ; Add the annotation $oJSpdf.addAnnot($iPage, 'FreeText', $rectSize, 'Automated', 'Find1234'); ; Printing $printParams =$oJSpdf.getPrintParams(); $printParams.interactive = -1; $printParams.firstPage = 0; $printParams.pageHandling = $printParams.constants.handling.fit; ;$oJSpdf.print(printParams); ;I'm prety sure at this point I should see the annot, but I don't $oJSpdf.flattenPages($iPage,$iPage) ; I know these funcs work, use them in other parts of the script. Outputs everything but no annot ConsoleWrite( Page_GetText($oJSpdf, $file, $ipage, "Full")&@CRLF)