Re: [iText-questions] Tagging content

2013-02-13 Thread 1T3XT BVBA
On 13/02/2013 22:56, Jason Kissinger wrote: > Collision with someone else's key causing plugin or some such to err > when it hits our invalid use of their key? That's the whole point of registering a prefix. The following code sample dates from before we had a convenience method to add extra keys

Re: [iText-questions] SWF Embedded in PDF not printing

2013-02-13 Thread pall
Hi Can you please tel me how u added swf's into pdf? -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net

Re: [iText-questions] Tagging content

2013-02-13 Thread Leonard Rosenthol
Are you saying that these keys will never appear in a PDF that makes it "out in the wild" (aka to the real world)? A PDF containing an undefined first class key in a dictionary is technically not a compliant PDF, and may be flagged as such by a validator. (for example, the PDF validator in Ado

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
This is just for our testing purposes. Not for external use by anyone. So in the absence of an already approved generic 'identifier' key for us to use, what are the drawbacks of us having a non-ISO approved key in our documents? Collision with someone else's key causing plugin or some such to err

Re: [iText-questions] Tagging content

2013-02-13 Thread Leonard Rosenthol
Except for your not being allowed to use a first class key (aka a key w/o a prefix), yes. So now go to , fill out the form and submit it. Then you'll have your legal prefix. Leonard From: Jason Kissinger mailto:ja...@jasonkissinger

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
To answer my own question (assume I'm on right track)... Image doesn't represent an /XObject, but PDFTemplate does. Doing: pdfTemplate.getAdditional().put(new PdfName("myId"), new PdfString("image1")); adds '/myId' to xobject's dictionary and I can now find the image stream by myId. Is that t

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Cool. That's what I had been trying to do, but I'm unable to find the itext api to do that on an image. Probably something simple, I just can't see it. Can you give/point me at example code to set custom key on com.itextpdf.text.Image? Have tried: image.setAdditional(new PdfDictionary()); imag

Re: [iText-questions] Tagging content

2013-02-13 Thread Leonard Rosenthol
The way to do it is what I am telling you to do. Custom key on the Xobject dictionary. That is how it has been done for 20 years now. The Alt element is for use in helping users who require assistive technology (such as blind users). Putting your value in there will screw them up :( Leonar

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Righto, I'll get right on that. ;-) Is there not a way to tag an object in any way so that I can pull it later? On Feb 13, 2013 11:46 AM, "Leonard Rosenthol" wrote: > Jason, using the Alt for an image is NOT the right way to accomplish what > you want. > > You should just put a custom key of y

Re: [iText-questions] Tagging content

2013-02-13 Thread Leonard Rosenthol
Jason, using the Alt for an image is NOT the right way to accomplish what you want. You should just put a custom key of your own choosing on each Xobject that you wish to "mark". This would be a second class key (as described in ISO 32000-1:2008) and you'll need to register your second class e

Re: [iText-questions] LTV signature in a single revision

2013-02-13 Thread ardamose123
Just posted the differences between this code and the original one: Instead of a CrlClient, provide a List as parameter. Use a for loop to match the certificate against each of the CRL clients in the list. I just remembered that, with some PDF files, it was giving me a "Not enough space"

Re: [iText-questions] LTV signature in a single revision

2013-02-13 Thread ardamose123
Paulo Soares-4 wrote > Post your code, please. Here it is: public boolean addVerification(String signatureName, OcspClient ocsp, List crls, CertificateOption certOption, Level level, CertificateInclusion certInclude) throws IOException, GeneralSecurityException {...if (crls != null && !crl

[iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Would the new accessibility api be appropriate for tagging an /XObject (ie image) so that it can later be retrieved by test automation? Or is there something else? I built 5.4.0 from svn, and added accessibleAttribute to image: image.setAccessibleAttribute(PdfName.ALT, new PdfString("image1"));

[iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Would the new accessibility api be appropriate for tagging an /XObject (ie image) so that it can later be retrieved by test automation? Or is there something else? I built 5.4.0 from svn, and added accessibleAttribute to image: image.setAccessibleAttribute(PdfName.ALT, new PdfString("image1"));

Re: [iText-questions] LTV signature in a single revision

2013-02-13 Thread Paulo Soares
Post your code, please. Paulo On Wed, Feb 13, 2013 at 4:45 PM, ardamose123 wrote: > Last week, I was tinkering with iText code in the repo and came up with a > solution to enable LTV. There was two problems in this case: > > The HSM I'm using doesn't have the complete certificate chain, just the

[iText-questions] Is there PDF/A-3 support in iText?

2013-02-13 Thread ardamose123
I just want to know if PDF/A-3 support is under development or not in the iText repository, or if there is a hint on how it could be achieved without the need of getting a copy of the standard (if possible). -- View this message in context: http://itext-general.2136553.n4.nabble.com/Is-there-PD

Re: [iText-questions] LTV signature in a single revision

2013-02-13 Thread ardamose123
Last week, I was tinkering with iText code in the repo and came up with a solution to enable LTV.There was two problems in this case: The HSM I'm using doesn't have the complete certificate chain, just the signing certificate. Fixed by "manually" building the chain from a keystore where the needed

[iText-questions] PDF Signature filter

2013-02-13 Thread Julia
Hello everyone, I'm new to this list and also a newbie to iText. I'm trying to generate a PDF file with an empty signature field in order to let the users sign it using Adobe Reader. So far everything is working fine, except for the fact that I need to filter which users can sign each docume

Re: [iText-questions] iText-questions Digest, Vol 81, Issue 23

2013-02-13 Thread Khatri Anand
Hi How to convert screen coordinates to PDF coordinates ? On Wed, Feb 13, 2013 at 1:07 PM, < itext-questions-requ...@lists.sourceforge.net> wrote: > Send iText-questions mailing list submissions to > itext-questions@lists.sourceforge.net > > To subscribe or unsubscribe via the World