Skip to main content

Posts

How do I open PDF's to specific pages?

Open a PDF to a specific page from a web-server 1. Use name/destination pairs when you Distill your PDF document. Please refer to the https://partners.adobe.com/asn/acrobat/sdk/explodedSDK/Documentation/PDF_Creation_APIs/pdfmarkReference.pdf This is designed for PostScript engineers or for those who are generating their own PostScript. 2. Use a highlight file. 3. append #page=x [where x is the page number]. 4. Select File > Document Properties > Open Options and target the page and view you want. This is the easiest, but least flexible method, as you get exactly one view that you can open to.

Javascript: Function to get Cookies values

function getCookiesValue(objCkNm) { var beginindex, endindex, result, num; num = objCkNm.length; beginindex=document.cookie.indexOf(objCkNm) + num +1 ; endindex=beginindex; //while we haven't hit ";" and it's not end of cookie while (document.cookie.charAt(endindex)!=";" && endindex <= document.cookie.length) endindex++ //result contains "JavaScript Kit" result=document.cookie.substring(beginindex,endindex) return result; }

Javascript: function to check that number is numeric

function IsNumeric(strString) { // check for valid numeric strings var strValidChars = "0123456789.-"; var strChar; var blnResult = true; if (strString.length == 0) return false; // test strString consists of valid characters listed above for (i = 0; i < strString.length && blnResult == true; i++) { strChar = strString.charAt(i); if (strValidChars.indexOf(strChar) == -1) { blnResult = false; } } return blnResult; }