WebBoard Conference: (P-PDF) JavaScriptDiscussions relating to the use of JavaScript within Acrobat and PDFDistance conversion into feet and inches- (Found July 2, 2008 ) Remove this line: alert (k); ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61082&fid... Embedded Pdf & PostMessage- (Found July 2, 2008 ) I am currently successfully using the PostMessage method to communicate between my web page and embedded pdf (uses object tag). The problem is, it works when I run it on my intranet, and doesn't work when I run my web page on the internet. Does anyone know the solution to this Thank you ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61130&fid... Date and Time- (Found July 2, 2008 ) I would like to add the date and time to my pdf by using JavaScript. I would like the time to change each time a sheet is printed. i.e., if I open the pdf and set the print count to 50, I'm sure the seconds would change depending on the speed of the printer. Can anyone help. Thank you. Also, if the time and date can not be together in one script, I can create a box for time and one for date. On ti ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61118&fid... Actions on links- (Found July 2, 2008 ) Tip on rotating: the rotate button does not rotate the document itself, only the view (rather as zooming in does not scale the document itself). If you want to permanently rotate pages, use Document Rotate pages, which may seem the same, but is completely different. ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61109&fid... Actions on links- (Found July 2, 2008 ) Hello! I have previously posted code, and found code that helped me to solve the problem. Then I computed lengths of words in a pdf from VBA. Now, I have a much simpler problem. I want to open another pdf from one pdf. In acrobat 7.0 professional, this is seemingly straightforward through the interface. But what happens, is that the document I want to rotate, is not rotated, ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61109&fid... Distance conversion into feet and inches- (Found July 2, 2008 ) One could also use one of these methods using the printf method to format and the mod operator to get the decimal inches: x = 137.62; display format var FtInFormat = '%,0 .0f'- %,0 2.0f''; display format format feet truncated and iches rounded k = util.printf(FtInFormat, Math.floor(x), (x % 1) 12); app.k, 3, 0); as a do ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61082&fid... Distance conversion into feet and inches- (Found July 2, 2008 ) Even simpler yet... ------------------------------- x = '137.42'; y = Math.floor(x); z = Math.round((x-y)12); k = y + ' feet ' + z + ' inches'; app.alert(k); ------------------------------- I kept the alert because it looks like you wanted this in your original code to be a popup box rather than displaying in the console. You just needed the app prefi ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61082&fid... PDF to PostScript convertion using adobe javascript and vb.net- (Found July 2, 2008 ) Hi I am using VB.Net and i have to create .PostScript file using Adobe javascript. I am able to create .ps in abode using javascript. Now I called that Javascript in my VB.Net code using JSO object. I copied the javascript in C:Program FilesAdobeAcrobat 8.0AcrobatJavascripts folder. VB.NET Code:- Dim gApp As Acrobat.CA ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61091&fid... Distance conversion into feet and inches- (Found July 2, 2008 ) This is a single cell field on a fillable Acrobat Form. I followed your advice and got Acrobat to accept the code once I also removed the line too, however no resultant product showed up in my output. Here is what I used for code: x = '137.42'; if (!..test(x)) x = x + '.00'; y = x.split('.'); len = y1.length; p = Math.pow(10,len); z = y112p ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=61082&fid... Problem Calculating Dates- (Found July 2, 2008 ) Would you share your code with the rest of us I would like to use it to auto-calc the amount of weeks an applicant was at the previous job. thanks! ...http://forum.planetpdf.com:80/wb/default.asp?boardid=2&action=9&read=60566&fid... |