Re: [iText-questions] Multiple JavaScript actions per field

2010-03-16 Thread Roger Misteli
Oh exactly! That's what I wanted! Thanks a lot! Best regards, Rog On 16.03.2010 14:05, 1T3XT info wrote: > Roger Misteli wrote: > >> Hiyas >> >> I haven't found this on the mailing list, but Acrobat allows to add >> multiple actions for, say,

[iText-questions] Multiple JavaScript actions per field

2010-03-16 Thread Roger Misteli
Hiyas I haven't found this on the mailing list, but Acrobat allows to add multiple actions for, say, MouseEnter on a field. It allows to add multiple scripts or other actions per trigger. Can this be done in iText as well? If yes, is there maybe a small sample I could check out? Best regards,

[iText-questions] BaseFont/Implementation question

2009-11-20 Thread Roger Misteli
Hiyas when iText creates a Font/BaseFont object, it contains a ton of information, but, as it looks, not the style bits. I create a font like this: com.lowagie.text.Font font = FontFactory.getFont(fontNameEntry.toString(), BaseFont.WINANSI, BaseFont.NOT_EMBEDDED, Font.UNDEFINED, Font.UN

[iText-questions] Freeing/Releasing font object?

2009-11-19 Thread Roger Misteli
Hiyas When I use a code like this: Set fonts = FontFactory.getRegisteredFonts(); for (Object font : fonts) { com.lowagie.text.Font fontInfo = FontFactory.getFont(font.toString(), BaseFont.WINANSI, BaseFont.NOT_EMBEDDED); String familyname = fontInfo.getFa

Re: [iText-questions] Annotations Modified?

2009-10-23 Thread Roger Misteli
>> Acrobat can open and verify the signature, but, below, mentions >> "Annotations modified" with the whole list of annotations that exist in the >> PDF. Forgot to mention that: Acrobat 9.1.3 and iText 2.1.7 Best regards Rog --

[iText-questions] "Tagging" signatures

2009-09-24 Thread Roger Misteli
Hiyas For a special project, there is a requirement that a PDF file that can be signed (or a certified document where a blank signature is being filled out and signed) can be "tagged" on a signature base level. What they want to do is creating their own appearances (works perfectly) per signat

[iText-questions] Bug in Phrase.addChunk() ?

2009-09-16 Thread Roger Misteli
Hiyas I have an Rtf Document and want to create a header with text chunks that are assigned to tabs within a header. Now.. my code creates a large Paragraph and wraps the RtfHeaderFooter around it and sets that to the RtfHeaderFooter. So far so good. This all works perfect until a paragraph co

[iText-questions] Reading PdfSignatureAppearance images from an existing PDF

2009-04-29 Thread Roger Misteli
Hiyas When I have a PDF that was signed, is it possible to read the appearance images (SignatureGraphic and Image in PdfSignatureAppearance) back somehow so I can display/extract them? Also is it possible to read the Acro6Layers and Acro6Text/Acro4Text strings back and the SignatureRender mode

Re: [iText-questions] Verify Timestamp information on signatures in a PDF's that are signed with external timestamps

2009-01-28 Thread Roger Misteli
e PKCS#7 signature - so you'll need to use > the crypto-provider APIs. > > Leonard > > -Original Message- > From: Roger Misteli [mailto:roger.mist...@abacus.ch] > Sent: Wednesday, January 28, 2009 8:12 AM > To: iText > Subject: [iText-questions] Verify Timestamp

[iText-questions] Verify Timestamp information on signatures in a PDF's that are signed with external timestamps

2009-01-28 Thread Roger Misteli
Hiyas I have a PDF with a couple signatures. The signatures can or cannot be signed with an external timestamp. The timestamping itself works flawlessy, but how can I, when I open a PDF again and get the certificates, extract the timestamp information again (precisely: if there is an external

[iText-questions] Font Embedding

2008-05-22 Thread Roger Misteli
Hi I'm trying to embed a font into a PDF that doesn't have any fonts embedded. Using the demo sample DumpFontNames, I could get a list of the font names that were missing. So far so good. Now, to embed the font, Paulo wrote a little sample code (http://thread.gmane.org/gmane.comp.java.lib.itex

Re: [iText-questions] Using PdfCopy & PdfWriter in thesame document?

2008-03-18 Thread Roger Misteli
ts regards, Rog Paulo Soares wrote: > If you have fields you must use PdfCopyFields, PdfCopy won't work. Also > remember to rename the fields before adding the doc. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTE

Re: [iText-questions] Using PdfCopy & PdfWriter in the same document?

2008-03-18 Thread Roger Misteli
Hi Paulo > - create a new pdf using PdfContentByte, close it and add it to PdfCopy > - add the existing docs to PdfCopy > - repeat the above steps I know that way, but since the engine uses PdfWriter, I thought there might be a way with PdfWriter.. > Using PdfWriter: > - create the pages with

[iText-questions] Using PdfCopy & PdfWriter in the same document?

2008-03-18 Thread Roger Misteli
Hiyas I have a report that should consist of a sequence of a few pages that I create using PdfContentByte and then a few pages that I need to import from another Pdf document. So basically, I want to have a PDF where pages 1 to 4 are created using PdfContentByte, then Pages 5 to 7 are imported

Re: [iText-questions] BaseFont.getWidths()

2007-11-20 Thread Roger Misteli
Thanks.. but in what unit are they returned? ColumnText.getWidth() doesn't state any unit.. Paulo Soares wrote: > BaseFont.getWidthPoint() or ColumnText.getWidth(). > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAI

[iText-questions] BaseFont.getWidths()

2007-11-20 Thread Roger Misteli
Hiyas How can I determine the width of a given String using a specific either com.lowagie.text.Font or com.lowagie.text.BaseFont? Is this possible? Basically, all I want is to determine the width if a specific string using a specific font.. Best regards, Rog -- * The best is the enemy

[iText-questions] TIF Compression/support

2007-03-21 Thread Roger Misteli
Hiyas Small question. In TIFFConstants I found a variety of differnet constants for TIF compression. From what I can see, about half of them are actually supported in TiffImage. Are the other non supported compression formats just here for clarity or did I miss something? Best regards, Rog -

Re: [iText-questions] PdfTemplates

2007-03-20 Thread Roger Misteli
Ah hit me.. That example actually gave me the idea of what I wanted to do.. I should have browsed longer.. sorry :-) Thanks Rog Bruno Lowagie (iText) wrote: > Roger Misteli wrote: >> Hiyas >> >> Is it possible to create a PdfTemplate, add it to a PdfContentByte, close

[iText-questions] PdfTemplates

2007-03-20 Thread Roger Misteli
Hiyas Is it possible to create a PdfTemplate, add it to a PdfContentByte, close the file, open the file again and then finding and finally filling the PdfTemplate? Background: We create multiple really large PDF files which may have content that isn't ready yet. So, with just one PDF, I can us

Re: [iText-questions] Image problem

2007-03-20 Thread Roger Misteli
This doesn't really say anything about your problem. Is the URL pointing to a local system or to a remote host? How fast is the connection itself? Are there any Firewalls in between that might slow down traffic? How large are the images? What types of images are they anyway? Etc. etc.. Your ques

Re: [iText-questions] convert PDF to JPEG

2007-03-15 Thread Roger Misteli
> dissapointed at how hard it is to save a PDF as an image... :( Save a page from a Word document as image.. you will be even more disappointed :-) > JPedal <- for some reason it insists on producing an image which is 1:1 > ratio in pixels for each point, so I can't use it because the result i

Re: [iText-questions] convert PDF to JPEG

2007-03-15 Thread Roger Misteli
Not with iText. You need a renderer for that. JPedal can do this (www.jpedal.org), other renderer libraries probably as well, but as far as I remember, there are only two that have an open source license: JPedal (GPL) and Mutivalent (http://multivalent.sourceforge.net), I didn't have a look at M

Re: [iText-questions] Templates, Watermarks

2007-02-26 Thread Roger Misteli
imizing my code! Thanks a lot! Rog Bruno Lowagie (iText) wrote: > Roger Misteli wrote: >> Hiyas >> >> I have a document with, say, 2000 pages and on each page is a little image. >> The image is the same over all the 2000 pages. Now, if I simply add the >>

[iText-questions] Templates, Watermarks

2007-02-26 Thread Roger Misteli
Hiyas I have a document with, say, 2000 pages and on each page is a little image. The image is the same over all the 2000 pages. Now, if I simply add the picture to the document using PdfContentByte and addImage() I get the desired result, but the same image is written 2000 times and blows up t

Re: [iText-questions] Signaturefields in Acrobat not visible?

2006-11-02 Thread Roger Misteli
n just axe > the XFA. > > Paulo > > > > De: [EMAIL PROTECTED] em nome de Roger Misteli > Enviada: qua 01-Nov-06 17:00 > Para: Post all your questions about iText here > Assunto: Re: [iText-questions] Signaturefields in Acrobat not visible?

Re: [iText-questions] Signaturefields in Acrobat not visible?

2006-11-01 Thread Roger Misteli
wrote: > Designer doesn't allow invisible signatures, that's an Adobe > restriction not iText's. > > Paulo > > > > De: [EMAIL PROTECTED] em nome de Roger > Misteli > Enviada: qua 01-Nov-06 16:48 > Para: Post all

Re: [iText-questions] Signaturefields in Acrobat not visible?

2006-11-01 Thread Roger Misteli
ng a new > signature I don't know if it's currently feasible in iText, mainly > because of the XFA layout issues. > > Paulo > > > > De: [EMAIL PROTECTED] em nome de Roger > Misteli > Enviada: qua 01-Nov-06 09:25 > Para: Pos

Re: [iText-questions] Signaturefields in Acrobat not visible?

2006-11-01 Thread Roger Misteli
re. By the way, Designer doesn't allow invisible > signatures. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Roger Misteli >> Sent: Tuesday, October 31, 2006 12:52 PM >> To: Post

Re: [iText-questions] Invalid color in the PDF?

2006-10-26 Thread Roger Misteli
; do an extra check. > > Paulo > > - Original Message - > From: "Roger Misteli" <[EMAIL PROTECTED]> > To: "Post all your questions about iText here" > > Sent: Wednesday, October 25, 2006 5:01 PM > Subject: [iText-questions] Invalid col

Re: [iText-questions] Helvetica fonts?

2006-10-25 Thread Roger Misteli
4 had the Helvetica font to display and you > could even use them to create a PDF with Helvetica embedded (license > issues aside). None of the PDFs have embedded fonts. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTE

[iText-questions] Is this the same?

2006-10-18 Thread Roger Misteli
Hiyas If I have this snippet: byte[] buffer = PdfStream xmp = new PdfStream(buffer); xmp.put(PdfName.TYPE, PdfName.METADATA); xmp.put(PdfName.SUBTYPE, new PdfName("XML")); PdfReader reader = new PdfReader(pdfBytes); ByteArrayOutputStream

Re: [iText-questions] Does Itext have a java pdf viewer

2006-10-12 Thread Roger Misteli
iText is an engine, not a viewer. There are viewer components from other companies, such as JPedal, Big Faceless, Ice and also some GLP versions. I can't speak for all of them, but in our company, we tried out the one from Ice Soft, JPedal, two GPL'ed versions I forgot again, the longretired Acr

Re: [iText-questions] embedding PowerPoint presentation.

2006-10-05 Thread Roger Misteli
Totally offtopic, but this sample PDF is a classic!! I never saw that example string that much alive.. Congrats.. Funny :-) Bruno Lowagie (iText) wrote: > jerry wrote: >> Hi, >> >> Can u please give me a sample > > See attachment. > br, > Bruno > > > --

Re: [iText-questions] RTF insert excel (or other file) embeded

2006-10-02 Thread Roger Misteli
> > ----- Original Message > From: Roger Misteli <[EMAIL PROTECTED]> > To: Post all your questions about iText here > > Sent: Monday, October 2, 2006 11:00:15 AM > Subject: Re: [iText-questions] RTF insert excel (or other file) embeded > > Embedding a file is

Re: [iText-questions] RTF insert excel (or other file) embeded

2006-10-02 Thread Roger Misteli
Embedding a file is relatively easy, but I don't understand what you mean with "exactly like word documents". Do you want to embed the files as OLE links? As far as I know, this is not possible with iText nor with PDF actually. public void embedFile(File file, int pX, int pY, String title, St

[iText-questions] setField(key, value) with duplicate field names

2006-09-28 Thread Roger Misteli
Hiyas I have a PDF which has two textfields with the same name. Is it possible to write different value into each of the fields using PdfSTamper/AcroFields? In AcroFields I only saw setField(String name, String value), resp. setField(String name, String value, String display) to fill a field. B

Re: [iText-questions] deprecated question

2006-09-22 Thread Roger Misteli
Uhm.. could it be that you COMPILED it using iText but you did not RUN it with iText? In other words, iText was in the classpath for the compiling process, but when you java mysample, you did not add the iText jar to the classpath? Rog Noe Rocha wrote: > hi > i was compiling this in a Linux e

Re: [iText-questions] reduce size of printed data

2006-09-21 Thread Roger Misteli
PDF itself, but when you print it (or display it) you need memory to display that image. If you need to print the document, you need to transfer the data to the printer, etc. It really depends on your document. Best regards, Rog tib wrote: > Roger Misteli abacus.ch> writes: > >>

Re: [iText-questions] reduce size of printed data

2006-09-21 Thread Roger Misteli
Depends on the printer model you have. Very low end models like hplj1200 or 1300 have very limited memory and very limited processing power. The printer does not support the full PCL 5 or 6 standard and the printer driver on the client machine is used to basically create bitmaps from the missin

Re: [iText-questions] FormFields

2006-08-22 Thread Roger Misteli
new int[] { color.getRed(), color.getGreen(), color.getBlue() }); d.put(PdfName.BG, f); } } } } finally { stamp.close(); } } finally { fos.close(); } } finally { reader.close(); } }

Re: [iText-questions] FormFields

2006-08-22 Thread Roger Misteli
ppearanceStates, but the PDF doesn't get filled with the values. Could it be that radio values and lists/combos need special care that I forgot to set or so? Best regards, Rog /* * Roger Misteli - ABACUS Research AG * Just because the system gives you

Re: [iText-questions] FormFields

2006-08-22 Thread Roger Misteli
ntrib? I don't think its in the normal Jars, is it? Where could I find that code? Best regards & Thanks Rog /* * Roger Misteli - ABACUS Research AG * Just because the system gives you a cliff doesn't mean you have to jump off it! */ --

[iText-questions] FormFields

2006-08-22 Thread Roger Misteli
content accordingly? I only found AcroFields.setField() using single values, but nothing to set multiple values. setListOption() only sets the displayed value according to the docs, not the values itself. Does anyone know? Best regards Rog /* * Roger Misteli - ABACUS Research AG *

Re: [iText-questions] PDF signature example

2006-08-15 Thread Roger Misteli
> iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions /* * Roger Misteli - ABACUS Research AG * The trouble with troubleshooting is that trouble sometimes shoots back! */ ---

[iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-12 Thread Roger Misteli
Hiyas In a previous life, I added my XMP metadata using this: byte[] xmpBuffer = getXMLDocumentAsByteArray(); PdfStream xmp = new PdfStream(xmpBuffer); xmp.put(PdfName.TYPE, PdfName.METADATA); xmp.put(PdfName.SUBTYPE, new PdfName("XML")); PdfIndirectReference ref = w

[iText-questions] Metadata per field

2005-08-09 Thread Roger Misteli
Hiyas Is it possible to have metadata per field and page in a PDF? I would need this to attach search data to a field, so that I will find the field AND its position again. This can, naturally change, per page. Is something like this possible in PDF and using iText? Best regards, Roger Misteli

[iText-questions] Custom Properties

2005-06-02 Thread Roger Misteli
Hi My applicatioon would like to have access (reading and writing) to Adobe Acrobat's "Custom Properties" (that is, "Document Properties -> Custom tab -> Custom properties"). It looks like a hash map with key value pairs. Is it possible to read/write to and from these values? And to iterate them

Re: [iText-questions] Re: how view a pdf file?

2005-04-01 Thread Roger Misteli
-- > This SF.net email is sponsored by Demarc: > A global provider of Threat Management Solutions. > Download our HomeAdmin security software for free today! > http://www.demarc.com/Info/Sentarus/hamr30 > ___ > iText-q

Re: [iText-questions] how view a pdf file?

2005-04-01 Thread Roger Misteli
utions. > Download our HomeAdmin security software for free today! > http://www.demarc.com/Info/Sentarus/hamr30 > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions /* * Roger Mi

[iText-questions] setMKxxxx

2005-03-15 Thread Roger Misteli
, "", "subreport_" + embeddedFileCounter + ".pdf"); writer.addAnnotation(annot); } is it possible to set the author, subject and description fields that appear in Acrobat when I riught click on an attachment and select Properties (on the General tab) u

[iText-questions] Import pages to PdfWriter

2005-03-14 Thread Roger Misteli
(the huge PDF has exactly one page after everything is written). Shouldn't newPage() on the PdfWriter create a new page that I can fill when the next record is found or am I doing something wrong here? Thanks Rog /* * Roger Misteli - ABACUS Research AG * email: [EMAIL PROTECTED] * Klingon

[iText-questions] setFullCompression?

2005-01-10 Thread Roger Misteli
cannot be read anymore. I'm quiet sure that this once worked though. Or do I have to set something else additionally to that that I forgot? I do not set any PDF version tag, for example? Best regards and thanks Roger Misteli --- The SF.Net ema

[iText-questions] AcroFields and single page export

2005-01-01 Thread Roger Misteli
Hiyas I didn't find this, but is it possible to load a pdf with acrofields, set all form values but export only a single page of the whole document? I have a 4 page PDF with AcroFields in there, I want to completely fill them and write each page as a singlee page to the file system. The single pag

[iText-questions] AcroFields & import_pages

2005-01-01 Thread Roger Misteli
Hiyas I didn't find this, but is it possible to load a pdf with acrofields, set all form values but export only a single page of the whole document? I have a 4 page PDF with AcroFields in there, I want to completely fill them and write each page as a singlee page to the file system. The single pag

Re[2]: [iText-questions] Who's using iText?

2004-12-09 Thread Roger Misteli
r which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > ___ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lis

[iText-questions] iText & Clipping

2004-10-25 Thread Roger Misteli
Hiyas Is it possible that I create a rectangle with text inside that is clipped to this rectangle, so that everything that would be rendered outside this rectangle is, well..clipped? Regards, Rog --- This SF.net email is sponsored by: IT Prod

Re: [iText-questions] XMP at what level?

2004-06-03 Thread Roger Misteli
Nevermind, I found the problem. It all works now :-) --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn m

[iText-questions] XMP at what level?

2004-06-02 Thread Roger Misteli
Hiyas I can currently write XML metadata to the PDF and its stored nicely. However, the Adobe XMP specification requires a specific location to write the XMP data to. Does anyone know how I can write it to the level required? This here is from the specification, maybe that helps: PDF For PDF file

[iText-questions] PdfAction uncompressed?

2004-05-07 Thread Roger Misteli
PdfActios compressed too? Thanks Roger Misteli /* * Roger Misteli - ABACUS Research AG * email: [EMAIL PROTECTED] (PGP key available) * "If you think the problem is bad now, just wait until we've solved it." */ --- This

[iText-questions] XMP / Metadata

2004-05-04 Thread Roger Misteli
re to look at? Thanks in advance and regards, Roger Misteli --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the