Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 270

Previous Page 269   Index   Next Page 271

Function Reference
Page 270 of 767
"{\n"
" var ocgArray = this.getOCGs();\n"
" var de = (app.language == \"DEU\");\n"
" for (var i = 0; i < ocgArray.length; i++)\n"
"
{\n"
"
if(ocgArray[i].name==\"English\")\n"
"
{\n"
"
ocgArray[i].state = !de;\n"
"
}else\n"
"
{\n"
"
ocgArray[i].state = de;\n"
"
}\n"
"
}\n"
"}");
pdfAddActionToObj(pdf, otCatalog, oeOnOpen, actLang, -1);
if (pdfHaveOpenDoc(pdf))
{
if (pdfOpenOutputFile(pdf, "test_layer.pdf"))
{
retval = pdfCloseFile(pdf);
}
}
pdfDeletePDF(pdf);
return retval;
}
 

Previous topic: CreateSetOCGStateAction

Next topic: CreateSigFieldAP