Re: [iText-questions] Merging PDF with Itext fails randomly in a batch

2010-08-10 Thread 1T3XT info
Venkat wrote: > Hi, > Any idea or anyone faced such a scenario where in a batch of merging pdfs > some > succeed and some fails to merge with no exception at all using JDK 1.5 and > itext-2.1.1 and itext-5.0.1( we tried both versions of itext) > Please advise, looks like really weird. You'll ha

Re: [iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread 1T3XT info
anlha wrote: > Thank you guys! > > I understand that i have to set the viewer preferences of the generated > file, but first i need to get the original ones. The viewer preferences, OR: the open action, OR: some document level javascript. It depends on how the initial zoom factor was set. -- Th

Re: [iText-questions] Missing line on page break

2010-08-10 Thread 1T3XT info
Ho Tzin Mein wrote: > Thank you for your help. Is the later bugfix in the iTextSharp 5.0.3 or > trunk? The bugfix is in the trunk of iText (the Java version). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -

Re: [iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread anlha
Thank you guys! I understand that i have to set the viewer preferences of the generated file, but first i need to get the original ones. Is that possible with the PdfReader class, i don't find the way to do it. Thank u in advance -- View this message in context: http://itext-general.2136553.n

Re: [iText-questions] Missing line on page break

2010-08-10 Thread Ho Tzin Mein
Thank you for your help. Is the later bugfix in the iTextSharp 5.0.3 or trunk? On 10/8/2010 9:26 PM, 1T3XT info wrote: > OK, I just had a look at the original bugreport (the one about too many > lines). I ran the example that came with that report, and as it turns > out a later bugfix by Paulo

[iText-questions] Tiff Clipping Path

2010-08-10 Thread Dean Krueger
Hi, I am using iText to build a flat of tiff images. Some of these tiff images have clipping paths, how can I activate the clipping path when I place it on the pdf? I have checked the book and itext mail groups, and have come up with only reference to creating shapes. The clipping path I need is i

[iText-questions] Merging PDF with Itext fails randomly in a batch

2010-08-10 Thread Venkat
Hi, Any idea or anyone faced such a scenario where in a batch of merging pdfs some succeed and some fails to merge with no exception at all using JDK 1.5 and itext-2.1.1 and itext-5.0.1( we tried both versions of itext) Please advise, looks like really weird. ---

Re: [iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread 1T3XT info
Wain, Matthew wrote: > I believe this is already in the list and the answer was: > > "See page 418. Use the two first code lines of the code sample. > Adapt the first parameters (page 1 instead of 2, Fit instead of XYZ)." You're mentioning the page number in the old book. In the new book, you ne

Re: [iText-questions] Missing line on page break

2010-08-10 Thread 1T3XT info
1T3XT info wrote: > This is fixed in the trunk. The problem was caused by a bugfix dating > from January 28. That bugfix was obviously a mistake, BUT by removing > it, the original problem (lines in split cells are repeated) should be > addressed again. OK, I just had a look at the original bug

Re: [iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread Wain, Matthew
I believe this is already in the list and the answer was: "See page 418. Use the two first code lines of the code sample. Adapt the first parameters (page 1 instead of 2, Fit instead of XYZ)." -Original Message- From: anlha [mailto:lh...@yahoo.fr] Sent: 10 August 2010 13:20 To: itext-ques

Re: [iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread 1T3XT info
anlha wrote: > Hi all, > > I'm trying to convert a pdf file to pdf/a and i'm having problems setting > the zoom for the iniatial view. > > I'm converting the file correctly but i loose the zoom property of the > original one, it's important for me to keep it like it is, but i can't find > any sol

Re: [iText-questions] PDFReader and authenticated url

2010-08-10 Thread msinatl
You might try the Apache Commons HttpClient (http://hc.apache.org/httpclient-3.x/). The documentation for version 4.x is not posted on the main site yet, but you can find example code for various types of authentication at http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/sr

Re: [iText-questions] Missing line on page break

2010-08-10 Thread 1T3XT info
Ho Tzin Mein wrote: > Hello, this is a follow up to my previous query. To recap: > > I have issues with missing lines in a PdfPCell if it spans a page break. > Seems related to this issue: > http://old.nabble.com/Some-text-is-missing-when-converting-from-HTML-to-PDF!-to28864202.html > > I've not

Re: [iText-questions] adding own keys to a dictionary

2010-08-10 Thread Leonard Rosenthol
Correct - case sensitive. Leonard -Original Message- From: TvT [mailto:tvtre...@nepatec.de] Sent: Tuesday, August 10, 2010 8:37 AM To: Post all your questions about iText here Subject: Re: [iText-questions] adding own keys to a dictionary Hi Leonard eagle eye ;-) > Don't forget - as

Re: [iText-questions] adding own keys to a dictionary

2010-08-10 Thread TvT
Hi Leonard eagle eye ;-) > Don't forget - as mentioned in ISO 32000-1:2008, Annex E - all custom keys > should be formal 2nd class names with their > prefixes registered with the ISO. Yes i know and we are about to do that :-) I already informed myself about the syntax of the prefix: - 4 letters

[iText-questions] setting pdf initial zoom from existing file

2010-08-10 Thread anlha
Hi all, I'm trying to convert a pdf file to pdf/a and i'm having problems setting the zoom for the iniatial view. I'm converting the file correctly but i loose the zoom property of the original one, it's important for me to keep it like it is, but i can't find any solution. There's a way to get

Re: [iText-questions] adding own keys to a dictionary

2010-08-10 Thread 1T3XT info
TvT wrote: > I want to add some keys to a field dictionary - is that possible with > any iText version (2.X and/or 5.X)? To a field dictionary in an existing PDF or in a newly created one? > If so, some examples or a reference to a book page would be appreciated... Existing PDF: get the field di

Re: [iText-questions] adding own keys to a dictionary

2010-08-10 Thread Leonard Rosenthol
Don't forget - as mentioned in ISO 32000-1:2008, Annex E - all custom keys should be formal 2nd class names with their prefixes registered with the ISO. Leonard -Original Message- From: TvT [mailto:tvtre...@nepatec.de] Sent: Tuesday, August 10, 2010 7:32 AM To: Post all your questions a

[iText-questions] adding own keys to a dictionary

2010-08-10 Thread TvT
Hi, in annex E the pdf spec says: "A conforming writer may also add keys to any PDF object that is implemented as a dictionary [...]" I want to add some keys to a field dictionary - is that possible with any iText version (2.X and/or 5.X)? If so, some examples or a reference to a book page would

Re: [iText-questions] iText-questions Digest, Vol 51, Issue 25

2010-08-10 Thread Calvin Streeting
1. I had to pass a pin to the ikey (part of they way this one works) and as it is in back of a server i have to pass info from client to server 2. you can only export the public key from the token (to a pfx) and it asks for a pin when using the private key to encrypt data (i think thats right) 3.

Re: [iText-questions] iText-questions Digest, Vol 51, Issue 25

2010-08-10 Thread ashish dhingra
Thanks for the reply.I have some doubts:- 1.Do i need to pass keycontainer name and pin necessarily? 2.If i use same way as we do by pfx file,when i try to make pkcs objects it prompts me to enter pin for accessing the token. 3.I am new to smart card,can you please tell me will CIPUtil.exe work fo

Re: [iText-questions] Signing with pkcs 7

2010-08-10 Thread Calvin Streeting
ok.. i get cert from X509Store by using subject protected X509Certificate2 GetCertificate(string subject) { X509Store st = new X509Store(StoreName.My, StoreLocation.CurrentUser); st.Open(OpenFlags.ReadOnly); X509Certificate2Collection col = st.Certificates;

Re: [iText-questions] Signing with pkcs 7

2010-08-10 Thread ashish dhingra
Hi, Here is what i did:- 1.open the pdf document. 2.Insert smart card token into USB drive. 3.Read certificate from store(x509 store) 4.Smart card will be on top of list so select zero index in store.certificates 5.convert this certificate to byte[] or use X509Certificate2 cert = store.Certificat

Re: [iText-questions] How to get the indent of the first letter of a section title?

2010-08-10 Thread 1T3XT info
Fred Janon wrote: > I generated a chapter and a section that gives me this: > > 1.1 Section 1: School-Level Environment Questionnaire > The first part of the questionnaire > > I want to align the title text "Section 1:..." with the text underneath > "The first part of the..." > I know I can set

[iText-questions] How to get the indent of the first letter of a section title?

2010-08-10 Thread Fred Janon
I generated a chapter and a section that gives me this: 1.1 Section 1: School-Level Environment Questionnaire The first part of the questionnaire I want to align the title text "Section 1:..." with the text underneath "The first part of the..." I know I can set the indent value of the section, bu

Re: [iText-questions] Null pointer exception in PdfWriter

2010-08-10 Thread 1T3XT info
Date: 2010-08-10 09:47:07 + (Tue, 10 Aug 2010) Log Message: --- PdfWriter: bugfix posted to the mailing list by Gylfi Ingvason, solving a problem with indirect references when importing pages. Modified Paths: -- trunk/src/core/com/itextpdf/text/pdf/PdfWriter.java

Re: [iText-questions] How to add paragraphs to an ItemList?

2010-08-10 Thread Fred Janon
Thanks. After going through the book, I figured that using chapters and sections would do that, that's what I am testing now. Thanks Fred On Tue, Aug 10, 2010 at 17:01, 1T3XT info wrote: > Fred Janon wrote: > > Hi, > > > > I would like to generate something like this: > > > > *1.2 Section

Re: [iText-questions] How to add paragraphs to an ItemList?

2010-08-10 Thread 1T3XT info
Fred Janon wrote: > Hi, > > I would like to generate something like this: > > *1.2 Section 2:Leadership Support* > > Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the > lazy dog. Quick brown fox jumps over the lazy dog. Quick brown fox jumps > over the lazy dog. Q

Re: [iText-questions] Text borders/boxes

2010-08-10 Thread 1T3XT info
Ty Davis wrote: > Hello, > > Is it possible to construct boxes, borders around paragraphs or chunks? > > What method and constructor would I apply? Chunk has a setBackground method, but in general, you need page events to add boxes and borders. (See chapter 5 of the 2nd edition of "iText in Ac

Re: [iText-questions] Unable to reset page nrs in a multipaage document

2010-08-10 Thread 1T3XT info
Patro, Muralidhar (GE Comm Fin, non-GE) wrote: > Hi, > > I am new to itext. > I need to reset the page nrs in my pdf print in a multipage Invoice > document, each time i complete the an invoice. You'll have to explain which classes you are using, and how you are trying to reset the page number.

Re: [iText-questions] Help needed in itext

2010-08-10 Thread 1T3XT info
vivek kumar sharma wrote: > > hello friends... > > I using itextsharp for creating pdf from text. > > now i want to add image in pdf using this by giveing url from the user . > > i taking url from javascript function. > > when i give the url then it comes as text. > > so please help me a

Re: [iText-questions] about the Signature by PFX

2010-08-10 Thread 1T3XT info
xyester...@gmail.com wrote: > Hi,It's said you can use the PFX to sign PDF document. > Could you send the code to me? > > I need to sign some PDF document which a digital signature.but I can't in the > C#. http://itextpdf.sourceforge.net/howtosign.html -- This answer is provided by 1T3XT BVBA h

Re: [iText-questions] Signing with pkcs 7

2010-08-10 Thread Calvin Streeting
How far have you got? 1. open pdf. 2. get the Certificate from the X509Store 3. draw signature if required 4. sign the pdf stream (using X509IncludeOption.WholeChain) Calvin Streeting Systems Developer. For and on behalf of Baily Garner LLP Tel: 0208 294 1000 (EXT: 8570) Fax: 0208 2941320 www.

Re: [iText-questions] Rotate and wrap text at the same time

2010-08-10 Thread 1T3XT info
dimas74 wrote: > Hi, I have been reading and searching for the solution and I can't find. > I need to rotate text about 15 degrees and wrap to make sure it will fit in > a specific small area. Can that be done? > At this time I either can use columnText.showTextAligned to rotate only or > columnTex

Re: [iText-questions] iText 1.3.1

2010-08-10 Thread Klas Lindbäck
I have seen this several times. Let me guess: You are using an HP printer driver? The problem is in the printer driver. I don't know why they don't fix it, cause it's really annoying. It's been around for a couple of years now. The workaround is to print the pdf again. You don't even have to re-

Re: [iText-questions] Itext Second Edition Chapter 12 EncryptWithCertificate key.properties

2010-08-10 Thread 1T3XT info
aaronyeo22 wrote: > i have try the several examples of itext second edition. when in chapter 12 > EncryptWithCertificate.java i cant find the key.properties even i was > downloaded itext-book.tar. anybody can help. i want that file. please help. Please read the "NOTE" in section 12.3.2 where it sa

Re: [iText-questions] How to get the layout right - text / images / text / images - tables vs. paragraphs

2010-08-10 Thread 1T3XT info
Rune Hellem wrote: > Hi > > I've just started using iText for my own personal project where I am > exporting my blog to PDF. Each blog post have some text and one or more > images in no particular order, it might alternate. I have tried to > modify some of the examples I have found and now mana

Re: [iText-questions] Find HTML links in PDF file

2010-08-10 Thread 1T3XT info
Selcuk Yazar wrote: > Hi, > > Can i find all html link in pdf document ? Also i want to find location > of html links. Links are annotations, so you need to loop over all the pages, get the ANNOTS entry from each page dictionary, and inspect every annotation. -- This answer is provided by 1T3XT

Re: [iText-questions] Signing with pkcs 7

2010-08-10 Thread 1T3XT info
ashish dhingra wrote: > Dear All, > I am not able to sign a pdf from the certificate stored in my smart > card.May I know how to sign a pdf usind pkcs 7.Hope for a quick and > positive response. http://itextpdf.sourceforge.net/howtosign.html -- This answer is provided by 1T3XT BVBA http://www.1

Re: [iText-questions] PDFReader and authenticated url

2010-08-10 Thread 1T3XT info
roffir wrote: > Hi, > I am trying to open a pdf document using pdfreader. The problem is that the > url that the pdf is in requires authentication... I have tried setting the > url as: username:"passw...@url", but this works in a browser but when > running the code using that url I get the same: "j

Re: [iText-questions] PDF Protect

2010-08-10 Thread 1T3XT info
lember wrote: > Hi. We are getting the java.lang.NoClassDefFoundError: > org/bouncycastle/asn1/ASN1OctetString using writer.setEncryption and we've > checked all the steps you mention before. We have a test server where the > pdf encryption works fine, it has tomcat 6 with java 1.6, but in producti

Re: [iText-questions] Help with tear-offs (vertical text)?

2010-08-10 Thread 1T3XT info
Edmund Mitchell wrote: > Hi all, > > Trying to create a flyer with tear-offs. In case you aren't familiar, > here is a picture of a flyer with tear-offs: > http://img1.meetupstatic.com/511327360118351034/img/icon/refPromoteFlyerGroupLarge.jpg > > The book had a great example of a flyer, and got

Re: [iText-questions] updated template not working

2010-08-10 Thread 1T3XT info
java flunkie wrote: > We use a pdf template and acrofields in order to create tailored pdf's for > each customer. I was tasked with modifying the pdf template to include a > new dynamic field and some new hardcoded fields. I uploaded the new > template pdf in eclipse to run in a java app. When I