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
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
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.
-
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
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
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.
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.
---
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
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
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
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
-
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
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
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
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@
]
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
: 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
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
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
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
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()
>
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 =
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
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
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/?
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
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
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-
||[
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.
> 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..
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
> 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..
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
- 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
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
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
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
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
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
--
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
> -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,
>
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
> 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
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
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:
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
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
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
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")
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);");
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
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(
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
: [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
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
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
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
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.
--
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
82 matches
Mail list logo