[iText-questions] Javascript and xfa worker

2013-03-11 Thread Sirisha Dinavahi
I have trial version of xfa worker which I want to use to flatten my XFA document. 1. My PDF has javascript that adds rows to dynamic tables in my XFA document. If I set the javascript to run on the server, can XFA worker execute this javascript? 2. I have a simpler javascript in my PDF that set

Re: [iText-questions] Javascript is not working after document signing

2012-09-18 Thread Leonard Rosenthol
Because your disabled MODIFICATION of the page content - thus you can't change it :). -Original Message- From: Victor Sterpu [mailto:[email protected]] Sent: Sunday, September 16, 2012 12:45 AM To: [email protected] Subject: [iText-questions] Javascript is not wo

Re: [iText-questions] Javascript is not working after document signing

2012-09-17 Thread 1T3XT BVBA
On 17/09/2012 13:01, Victor Sterpu wrote: > I need to replicate the Adobe signature. 1. The digital signing functionality has been refactored. See http://itextpdf.com/book/digitalsignatures for more info. 2. PAdES part 5 (signing the XML variant of PDF) isn't supported in iText. -

Re: [iText-questions] Javascript is not working after document signing

2012-09-17 Thread Victor Sterpu
I need to replicate the Adobe signature. So setEncryption is not what I need. But now I tryed to sign the document like here http://itextpdf.sourceforge.net/howtosign.html. But the function setCrypto is not found. PdfSignatureAppearance sap = stp.getSignatureAppearance(); sap.setCrypto(key, chai

Re: [iText-questions] Javascript is not working after document signing

2012-09-17 Thread iText Info
Op 17/09/2012 11:53, Victor Sterpu schreef: > You mean a price. How mutch? In this case, I didn't mean a price. I meant: we'd need too many counter-questions and guessing to answer. For instance: "If I crypt from adobe javascript is ok." It's impossible to "crypt from adobe javascript" so you prob

Re: [iText-questions] Javascript is not working after document signing

2012-09-16 Thread 1T3XT BVBA
On 16/09/2012 6:45, Victor Sterpu wrote: > After I sign a document like this: > pw.setEncryption The question is wrong. You don't 'SIGN' a document with setEncryption(). Also: you're mixing real PDF functionality with XFA functionality. We'd need more than a mail to explain what you're doing wrong.

[iText-questions] Javascript is not working after document signing

2012-09-15 Thread Victor Sterpu
After I sign a document like this: pw.setEncryption(null, OWNER, PdfWriter.ALLOW_PRINTING | PdfWriter.ALLOW_COPY , PdfWriter.STANDARD_ENCRYPTION_128); all java script in the PDF is not working. Page numbers and row shading are done with JS. How can I fix this? Thank you. ---

Re: [iText-questions] Javascript in PDF with Russian

2011-02-28 Thread LIHE
It's so easy! I was thinking outside the box, the whole time ... dealing with the conversion of the string... nothing worked, because: Just use PdfAction.javaScript(String code, PdfWriter writer, boolean unicode) with unicode=true and be happy -- View this message in context: http://itext-ge

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread Leonard Rosenthol
You missed my point. The ENTIRE STRING OF JAVASCRIPT needs to be in UTF16BE... -Original Message- From: LIHE [mailto:[email protected]] Sent: Friday, February 25, 2011 9:57 AM To: [email protected] Subject: Re: [iText-questions] Javascript in PDF with Russian

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread LIHE
Thats tricky - how can I convert my string into a javascript readable utf-16be string, i can't pass the bytearry ;) - using .net - but a java hint will help alsp - so i can search for dotnet code... -- View this message in context: http://itext-general.2136553.n4.nabble.com/Javascript-in-PDF-wit

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread Leonard Rosenthol
JavaScript doesn't use UTF8. It uses either ISO Latin 1 or UTF16BE. From: LIHE [mailto:[email protected]] Sent: Friday, February 25, 2011 4:28 AM To: [email protected] Subject: [iText-questions] Javascript in PDF with Russian Anyone knows if JavaScript inside the PD

Re: [iText-questions] Javascript And Flash In PDF Created by IText

2010-10-17 Thread Leonard Rosenthol
- From: rami issa [mailto:[email protected]] Sent: Sunday, October 17, 2010 5:35 AM To: [email protected] Subject: [iText-questions] Javascript And Flash In PDF Created by IText Hii We Have Flash (swf file) that calls Javascript functions. In Html , When We embed the flash and

[iText-questions] Javascript And Flash In PDF Created by IText

2010-10-17 Thread rami issa
Hii We Have Flash (swf file) that calls Javascript functions. In Html , When We embed the flash and add the script to the header of the html file, the flash calls the javascript functions and get the data from these functions. when I try to do the same with PDF it doesnt work for me, here are th

Re: [iText-questions] Javascript Disable issue

2010-05-04 Thread 1T3XT info
PavanBellala wrote: > Hi, > > There is no PRINT in PdfAction, only PRINTDIALOG is avialable. Can you > please let me know how to fire off print menu item using iText or anyother > way to print without adding javascript. As far as I remember, Adobe's PDF Technical Standards Evangelist explained i

Re: [iText-questions] Javascript Disable issue

2010-05-04 Thread PavanBellala
gt; > Cardiff.com > > > > import legalese.Disclaimer; > > Disclaimer DisCard = null; > > > > > > From: pavan kumar [mailto:[email protected]] > Sent: Friday, April 30, 2010 2:43 AM > To: itext-questions@

Re: [iText-questions] Javascript Disable issue

2010-04-30 Thread Mark Storer
] Sent: Friday, April 30, 2010 2:43 AM To: [email protected] Subject: [iText-questions] Javascript Disable issue Hi, In our application we are using iText to create PDF and print by adding javascript. Currently due to security reasons one of my client disabling javasc

Re: [iText-questions] Javascript Disable issue

2010-04-30 Thread Leonard Rosenthol
: pavan kumar [mailto:[email protected]] Sent: Friday, April 30, 2010 11:43 AM To: [email protected] Subject: [iText-questions] Javascript Disable issue Hi, In our application we are using iText to create PDF and print by adding javascript. Currently due to security reasons

[iText-questions] Javascript Disable issue

2010-04-30 Thread pavan kumar
Hi, In our application we are using iText to create PDF and print by adding javascript. Currently due to security reasons one of my client disabling javascript in PDF and requesting to provide print functionality for the PDF where the javascript is disabled. Does iText provide any API to enable ja

Re: [iText-questions] JavaScript action after a signature field is signed

2009-09-04 Thread webpointz
Using this method to add a signature, how would you go about setting the signature field to READ ONLY so that Adobe Reader v9.1 doesn't show the "Lock document after signing" checkbox? 1T3XT info wrote: > > This is completely wrong: >> PdfAcroForm acroForm = stamp.getWriter().getA

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-27 Thread mingxun
Thanks. That works. Ming 1T3XT info wrote: > > This is completely wrong: >> PdfAcroForm acroForm = stamp.getWriter().getAcroForm(); >> PdfFormField sigField = acroForm.addSignature("test", 300, >> 100, >> 400, 200); > > It causes: >> java.lang.RuntimeException: Unsupport

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-25 Thread 1T3XT info
This is completely wrong: > PdfAcroForm acroForm = stamp.getWriter().getAcroForm(); > PdfFormField sigField = acroForm.addSignature("test", 300, 100, > 400, 200); It causes: > java.lang.RuntimeException: Unsupported in this context. Use > PdfStamper.addAnnotation() >

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-25 Thread mingxun
I am trying to add a signature field and then add some javascript associate this field to an existing pdf document. The code is something like this: PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("registered.pdf")); ByteArrayOutputStream baos =

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread Leonard Rosenthol
Details are in the PDF Reference/ISO 32000. Leonard -Original Message- From: mingxun [mailto:[email protected]] Sent: Tuesday, February 24, 2009 3:19 PM To: [email protected] Subject: Re: [iText-questions] JavaScript action after a signature field is signed Is

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread mingxun
Is there event for signature field is signed? Or is there PDFName for signature is signed? so that I can associate javascript with that event? Thanks for your help Ming Xun Huang 1T3XT info wrote: > > Huang, Ming wrote: >> I want to use iText to add some dynamic JavaScript which will be

Re: [iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread 1T3XT info
Huang, Ming wrote: > I want to use iText to add some dynamic JavaScript which will be > executed after a signature is signed. I can add the static JavaScript > using Acrobat Profession. Can iText API do that? iText can add JavaScript; see for instance: http://1t3xt.info/examples/browse/?

[iText-questions] JavaScript action after a signature field is signed

2009-02-24 Thread Huang, Ming
I want to use iText to add some dynamic JavaScript which will be executed after a signature is signed. I can add the static JavaScript using Acrobat Profession. Can iText API do that? Thanks Ming Xun Huang -- Ope

Re: [iText-questions] Javascript printing

2008-07-12 Thread 1T3XT info
Ramo At Skuff wrote: > Hi, > > is it possible, with itext, to transform a html page with javascript > elements? I mean, if i position a draggable element (for example a picture) > on another place, to convert this page in a pdf? It's probably possible, but it's plenty of work, so you'll be on you

[iText-questions] Javascript printing

2008-07-12 Thread Ramo At Skuff
Hi, is it possible, with itext, to transform a html page with javascript elements? I mean, if i position a draggable element (for example a picture) on another place, to convert this page in a pdf? Best regards Ramo ||-Ursprüngliche Nachricht- ||Von: [EMAIL PROTECTED] [mailto:itext- ||[

Re: [iText-questions] Javascript from Acroform Fields

2008-02-20 Thread 1T3XT info
Joe Gerew wrote: >> Can this be done? AS I HAVE SAID BEFORE: http://www.nabble.com/Re%3A-Javascript-from-Acroform-Fields-p15484333.html THIS QUESTION HAS ALREADY BEEN ANSWERED: http://www.nabble.com/Re%3A-iText-Acrofields-and-Javascript-p15286298.html SEE ALSO: http://article.gmane.org/gmane.comp.

[iText-questions] Javascript from Acroform Fields

2008-02-20 Thread Joe Gerew
> I need to be able to extract the javascript code from an acrofield > item. For example, if the onmouseover code is app.alert("Hello > World"); then I would like to retrieve that code via Java. The > javascript is placed in the field via Adobe Acrobat (not generating > forms with iText..

Re: [iText-questions] Javascript from Acroform Fields

2008-02-14 Thread 1T3XT info
Joe Gerew wrote: >> I need to be able to extract the javascript code from an acrofield >> item. This question was already answered: http://article.gmane.org/gmane.comp.java.lib.itext.general/35731 Instead of double posting the question, please reply to the answer ans explain what it is you don't

[iText-questions] Javascript from Acroform Fields

2008-02-14 Thread Joe Gerew
> I need to be able to extract the javascript code from an acrofield > item. For example, if the onmouseover code is app.alert("Hello > World"); then I would like to retrieve that code via Java. The > javascript is placed in the field via Adobe Acrobat (not generating > forms with iText..

Re: [iText-questions] Javascript from Acroform Fields

2008-02-07 Thread 1T3XT info
Joe Gerew schreef: > > I need to be able to extract the javascript code from an acrofield > item. Please don't double post questions that were already answered: http://www.nabble.com/Re%3A-iText-Acrofields-and-Javascript-p15286298.html If the answer wasn't clear, please explain which part of t

[iText-questions] Javascript from Acroform Fields

2008-02-07 Thread Joe Gerew
> I need to be able to extract the javascript code from an acrofield item. For example, if the onmouseover code is app.alert("Hello World"); then I would like to retrieve that code via Java. The javascript is placed in the field via Adobe Acrobat (not generating forms with iText...yet) u

[iText-questions] JavaScript

2008-02-03 Thread BACQ Jean-sébastien
Bonjour, Apres une saine lecture des docs Adobe et surtout le guide JavaScript, il s'avère que la plus part des fonctionnalités proposées par iText sont disponibles directement par du code JavaScript. Peut-on réaliser en JS un appel JSON pour recuperer des données sur un serveur et remplir les Acr

Re: [iText-questions] Javascript on Layers

2007-10-25 Thread dreams
Can you elaborate your solution little more please. I have mentioned piece of my code for ur reference. I have to change the background color of the layer, when an event is triggered like if the option of a radio button selected is 'Yes'. I am able to hide it by changing the state through java scr

Re: [iText-questions] Javascript on Layers

2007-10-24 Thread Leonard Rosenthol
Yes and no. If you create different backgrounds, then you can associate each with a layer (OCG) and then turn them on/off as you wish. Leonard On Oct 24, 2007, at 1:46 PM, swapna reddy wrote: Hi I am hiding layers when an event is triggered. Layers has some free text and different contr

Re: [iText-questions] JavaScript (Silent Print) not working with Adobe Reader 8.0

2007-06-18 Thread Dilip Ladhani
Some more info This is the error I get with Adobe Acrobat's JavaScript debugger. NotAllowedError: Security settings prevent access to this property or method. Doc.print:1:Document-Level:0 thanks On 6/18/07, Leonard Rosenthol <[EMAIL PROTECTED]> wrote: > Try taking out the closeDoc() and see w

Re: [iText-questions] JavaScript (Silent Print) not working with Adobe Reader 8.0

2007-06-18 Thread Leonard Rosenthol
Try taking out the closeDoc() and see what happens. On Jun 18, 2007, at 11:43 AM, Dilip Ladhani wrote: > When you click on the button with Adobe 7.x, the print dialog box > (which enables you to pick Print Preferences) shows up. With 8.x, the > print dialog box just does not show up. > > BTW, I

Re: [iText-questions] JavaScript (Silent Print) not working with Adobe Reader 8.0

2007-06-18 Thread Dilip Ladhani
When you click on the button with Adobe 7.x, the print dialog box (which enables you to pick Print Preferences) shows up. With 8.x, the print dialog box just does not show up. BTW, I am using iText itext-1.3.6 thanks On 6/18/07, Leonard Rosenthol <[EMAIL PROTECTED]> wrote: > What do you mean "do

Re: [iText-questions] JavaScript (Silent Print) not working with Adobe Reader 8.0

2007-06-18 Thread Leonard Rosenthol
What do you mean "doesn't work"? What happens when such a PDF is open in Reader 8.x? Leonard On Jun 18, 2007, at 10:44 AM, Dilip Ladhani wrote: > Hey guys, > > Last year I used iText (obviously) and some nice javascript to > implement Silent Print (On Click of a button, the document gets > prin

[iText-questions] JavaScript (Silent Print) not working with Adobe Reader 8.0

2007-06-18 Thread Dilip Ladhani
Hey guys, Last year I used iText (obviously) and some nice javascript to implement Silent Print (On Click of a button, the document gets printed, without the user having to view the document. The script (described below) executes when the document is opened (The object tag which displays the pdf h

Re: [iText-questions] Javascript

2007-05-16 Thread Leonard Rosenthol
Document level scripts execute automatically when a document opens - no need to do anything special. Leonard On May 16, 2007, at 8:19 AM, Dean Krueger wrote: > Hi.. > When inserting javascript into a PDF, is there away to name the > javascript. When I insert the javascript I am getting script

[iText-questions] Javascript

2007-05-16 Thread Dean Krueger
Hi.. When inserting javascript into a PDF, is there away to name the javascript. When I insert the javascript I am getting scripts named 0 or 1 when viewing them in Acrobat. I need to give this a physical name. Also, if I want the javascript to execute on the opening of the PDF is there something

Re: [iText-questions] JavaScript FDF

2007-05-16 Thread Paulo Soares
an Krueger > Sent: Tuesday, May 15, 2007 9:50 PM > To: [email protected] > Subject: [iText-questions] JavaScript FDF > > Hi. > I have javascript embedded in a .FDF file and would like to merge > this file into existing pdfs. If I double click on the .FDF f

[iText-questions] JavaScript FDF

2007-05-15 Thread Dean Krueger
Hi. I have javascript embedded in a .FDF file and would like to merge this file into existing pdfs. If I double click on the .FDF file it allows me to select a PDF and then it merges the javascript into the PDF. Can this be done using iText? I did see a post back in 2003 saying it couldn't. But I

Re: [iText-questions] Javascript

2007-03-29 Thread Paulo Soares
o: [email protected] > Subject: Re: [iText-questions] Javascript > > This is strange. > > I have use acrobat professional 6.0.5 > If I open that document, I see the fields. > See the my print/screen in the word document. > > Thanks. > Aristide > Aviso

Re: [iText-questions] Javascript

2007-03-29 Thread Leonard Rosenthol
That's because there aren't any fields in this PDF. I don't know how you produced this document - but it only has page annotations but NOT the associated AcroForm objects. Thus, getField () can't find anything. Leonard On Mar 29, 2007, at 8:47 AM, Aristide Di Lauro wrote: Hi, Leonard Th

Re: [iText-questions] Javascript

2007-03-29 Thread Aristide Di Lauro
Hi, Leonard This is the problem! One of the main problem. The message in Italian is mine. I show the message when the script return null. In this case, the script abort in this section: var buttonSave = this.getField("Salva"); if (buttonSave == null) { app.alert({cMsg: "Atten

Re: [iText-questions] Javascript

2007-03-28 Thread Alexis Pigeon
Hi Aristide, On 28/03/07, Aristide Di Lauro <[EMAIL PROTECTED]> wrote: [...] > We use the iText version r1.01;p126 > Do you any idea? You mean you use iText 1.01, paulo's revision 126? This version is 3,5 years old (sept '03), you really should be thinking of upgrading. Current version is 2.0.1

[iText-questions] Javascript

2007-03-28 Thread Aristide Di Lauro
We have use PDF for an application input, generating from a servlet, this application is used in 50.000 clients. With the iText library we put in FIELDS of a different template document (designed with Acrobat Professional 6.0) the correct value, this value is readed from DB. For the presentati

Re: [iText-questions] javascript functions in PDF

2006-02-01 Thread Bruno Lowagie
Sanjeev wrote: Hi all. I am creating a PDF document dynamically and need to add validations for different datatypes. Is there a concept of javascript functions in PDF? Yes. http://partners.adobe.com/public/developer/pdf/topic_js.html Just like we have a set of functions in .js file and we

[iText-questions] javascript functions in PDF

2006-02-01 Thread Sanjeev
Hi all. I am creating a PDF document dynamically and need to add validations for different datatypes. Is there a concept of _javascript_ functions in PDF? Just like we have a set of functions in .js file  and we include it in HTML to do client side validations, do we have anything similar in PDF? 

[iText-questions] javascript

2005-10-13 Thread dave shep
I am trying to add _javascript_ to an iText document. In the html version the onclick() action calls a _javascript_ functions which then updates other fields in the form as well as changing the style of the item clicked.   Is this possible with iText and, if so, do you have any examples of code to

Re: [iText-questions] Javascript disappears after removing XFA, and Compression.

2005-04-02 Thread Leonard Rosenthol
At 10:32 AM 4/2/2005, Chris Groenewald wrote: I've seen in the mail archives that one can remove the XFA from a Acrobat 7 form to make filling of the form possible. And it works too. But I've also seen one nasty side effect: The client-side JavaScript in the PDF goes missing. That is cor

Re: [iText-questions] Javascript disappears after removing XFA, and Compression.

2005-04-02 Thread Chris Groenewald
the PdfAnnotation so that I can set the javascript. Thanks again, Chris. From: "Paulo Soares" <[EMAIL PROTECTED]> Reply-To: "Paulo Soares" <[EMAIL PROTECTED]> To: "Chris Groenewald" <[EMAIL PROTECTED]>, Subject: Re: [iText-questions] Javascript disappe

Re: [iText-questions] Javascript disappears after removing XFA, and Compression.

2005-04-02 Thread Paulo Soares
- Original Message - From: "Chris Groenewald" <[EMAIL PROTECTED]> To: Sent: Saturday, April 02, 2005 3:32 PM Subject: [iText-questions] Javascript disappears after removing XFA, and Compression. > Hi all, > > I've seen in the mail archives that one can r

[iText-questions] Javascript disappears after removing XFA, and Compression.

2005-04-02 Thread Chris Groenewald
Hi all, I've seen in the mail archives that one can remove the XFA from a Acrobat 7 form to make filling of the form possible. And it works too. But I've also seen one nasty side effect: The client-side JavaScript in the PDF goes missing. Is there any way to preserve the JavaScript in the docum

[iText-questions] javascript and events

2004-09-14 Thread jcmag
Hello, I want to validate user entries by using javascript. I've created a PDF form, added some textboxes, and now I want to catch the "validate" event... but I don't know how to do that. I know how to add javascript code, like : writer.addJavaScript("app.alert({cMsg: \"good !\", cTitle: \"Testing

Re: [iText-questions] JavaScript in Pdf

2004-03-29 Thread Leonard Rosenthol
At 12:33 AM 3/29/2004, Lucian Sasu wrote: I have to create PDF files from html sources (the html source is contained into a String). The files are created on a BeaWeblogic server, to be viewed in a browser. OK... Some of the html sources contains JavaScript code that fills in some tables

[iText-questions] JavaScript in Pdf

2004-03-29 Thread Lucian Sasu
Hi. I have to create PDF files from html sources (the html source is contained into a String). The files are created on a BeaWeblogic server, to be viewed in a browser. Some of the html sources contains JavaScript code that fills in some tables with computed values (this can be done only on the cl

Re: [iText-questions] JavaScript execution

2003-10-16 Thread Leonard Rosenthol
At 9:36 AM -0700 10/15/03, Adrian Fisher-Fleming wrote: Is it possible to execute/call a previously embedded piece of JavaScript code using iText? No. The only thing that can execute PDF JavaScript is Adobe Acrobat. Leonard --

[iText-questions] JavaScript execution

2003-10-15 Thread Adrian Fisher-Fleming
Is it possible to execute/call a previously embedded piece of JavaScript code using iText? Example: addPage() Regards, Adrian --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Proje

RE: [iText-questions] Javascript are not getting copied in PDFCop y

2003-09-18 Thread Paulo Soares
> -Original Message- > From: Sivasubramanian Gurunathan [SMTP:[EMAIL PROTECTED] > Sent: Thursday, September 18, 2003 5:09 > To: Paulo Soares; [EMAIL PROTECTED] > Subject: RE: [iText-questions] Javascript are not getting copied in > PDFCop y > > Hi, >

RE: [iText-questions] Javascript are not getting copied in PDFCop y

2003-09-17 Thread Sivasubramanian Gurunathan
t; > > -Original Message- > > From: Sivasubramanian Gurunathan > [SMTP:[EMAIL PROTECTED] > > Sent: Tuesday, September 16, 2003 12:48 > > To: [EMAIL PROTECTED] > > Subject:[iText-questions] Javascript are not > getting copied in > > PDF

RE: [iText-questions] Javascript are not getting copied in PDFCop y

2003-09-16 Thread Paulo Soares
> Sent: Tuesday, September 16, 2003 12:48 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Javascript are not getting copied in > PDFCopy > > Hi all, > > I am using PDFCopy for merging PDF after mapping the > fields using PDFStamper. > > While opening the Me

[iText-questions] Javascript are not getting copied in PDFCopy

2003-09-16 Thread Sivasubramanian Gurunathan
Hi all, I am using PDFCopy for merging PDF after mapping the fields using PDFStamper. While opening the Merged Pdf, I am getting a script error, when I opened the form in Acrobat Editor 5.0. The detailed error is below. Acrobat Database Connectivi

[iText-questions] Javascript in PDF during application initialization

2003-07-23 Thread Martin Koel
Hi all, Anybody knows how to execute JavaScript code that may only be executed during initialization of the document. I want to use the app.hideMenuItem() function, but cannot get it to run. While other methods will run as they are not limited due to 'pdf security' rules. Code that wont work:

RE: [iText-questions] Javascript and PDF Anchor

2003-07-11 Thread Leonard Rosenthol
At 9:10 AM +0530 7/11/03, SATHISH Sreedharan wrote: Can you point me to some site where I can find some more documentation on this as this seems to be very interesting and I wud like to know more abt this topic. In the Help menu of Adobe Acrobat 5 (FULL product, not Reader) is the complete Jav

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread SATHISH Sreedharan
Hi Leonard, Thanks a lot for your timely help.It has worked for me. Lots and Lots of Thanks again Sathish -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:25 PM To: SATHISH Sreedharan; [EMAIL PROTECTED] Subject: RE: [iText-questions

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread SATHISH Sreedharan
PROTECTED] Sent: Thursday, July 10, 2003 9:25 PM To: SATHISH Sreedharan; [EMAIL PROTECTED] Subject: RE: [iText-questions] Javascript and PDF Anchor At 06:05 PM 7/10/2003 +0530, SATHISH Sreedharan wrote: >Now, if my requirement is that i want to display an alert from a pdf, then >is there a

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread Leonard Rosenthol
At 06:05 PM 7/10/2003 +0530, SATHISH Sreedharan wrote: Now, if my requirement is that i want to display an alert from a pdf, then is there any way to do this. Use Acrobat JavaScript as the action NOT browser JavaScript (which is what you were doing). app.alert("This is an alert")

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread SATHISH Sreedharan
To: SATHISH Sreedharan; [EMAIL PROTECTED] Subject: Re: [iText-questions] Javascript and PDF Anchor At 10:41 AM +0530 7/10/03, SATHISH Sreedharan wrote: >c.setAnchor("javascript:onLoad=window.open('http://www.yahoo.com','popup','').focus();void(0);");

Re: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread Leonard Rosenthol
At 10:41 AM +0530 7/10/03, SATHISH Sreedharan wrote: c.setAnchor("javascript:onLoad=window.open('http://www.yahoo.com','popup','').focus();void(0);"); This shouldn't work at all - esp. with Acrobat 6. The support for the "javascript" URL type was an unfortunate security hole introduced during t

[iText-questions] Javascript and PDF Anchor

2003-07-09 Thread SATHISH Sreedharan
Hi All, I used the following piece of code to open a target URL in a new window. -- Chunk c = new Chunk("anchor", FontFactory.getFont(FontFactory.HELVETICA, 12, Font.UNDERLINE, new Color(0, 0, 255))); c.setAnchor(

[iText-questions] Javascript alert in a PDF

2003-07-08 Thread SATHISH Sreedharan
Hi All, There is an example posted in the site on how to invoke the print dialog using PDFAction.javascript() function. Now,I want to display a javascript alert box when the pdf opens.I tried all options and nothing worked.Can anyone help me on how to do this by sending a sample code. Thanks! S

RE: [iText-questions] JavaScript not working

2003-06-26 Thread SARGHI Mircea Ionut
: [iText-questions] JavaScript not working At 12:12 PM +0300 6/26/03, SARGHI Mircea Ionut wrote: >Document document = new Document(psize, 0, 0, 0, 0); >PdfWriter writer = PdfWriter.getInstance(document, new >FileStream("completed.pdf", FileMode.Create)); >PdfAction printAct

RE: [iText-questions] JavaScript not working

2003-06-26 Thread Paulo Soares
To: [EMAIL PROTECTED] > Subject: [iText-questions] JavaScript not working > > Hi guys, > > I am trying to add some javascript to my pdf page. Like this( I am trying > to > print the pdf and then close the doc). > > Document document = new Document

[iText-questions] JavaScript not working

2003-06-26 Thread SARGHI Mircea Ionut
Hi guys, I am trying to add some javascript to my pdf page. Like this( I am trying to print the pdf and then close the doc). Document document = new Document(psize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance(document, new FileStream("completed.pdf", FileMode.Create)); PdfAction printAc

RE: [iText-questions] javascript

2003-02-13 Thread Paulo Soares
That's javascript for the pdf, it has nothing to do with the browser. Best Regards, Paulo Soares > -Original Message- > From: Pablo Jimenez [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 12:43 > To: itext > Subject: [iText-questions] javascrip

[iText-questions] javascript

2003-02-13 Thread Pablo Jimenez
Hello, I have made a document in a servlet. How to print and close the window in the client browser? writer.addJavaScript("this.print(false);",false); //this work very good writer.addJavaScript("document.close()",false); //this don't work Thank you. --

[iText-questions] JavaScript to Java

2003-01-21 Thread Cinzia
Does anyone know if it is possible to pass a variable from JavaScript to Java in a pdf document. How? Thanks --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarship