Re: [iText-questions] Setting Up iText and BouncyCastle

2010-01-19 Thread 1T3XT info
Rhino wrote: > How would YOU set up Eclipse/iText/BouncyCastle, using a recent version > of Eclipse, like 3.5.1, on Windows XP on a clean computer that had no > IText or BouncyCastle code already on it? I would open Eclipse and create a new workspace. For instance c:/workspace Then I would open

Re: [iText-questions] um bug na versão 5.0 / a bug in version 5.0

2010-01-19 Thread 1T3XT info
victor neves wrote: > I discovered this bug by putting a cell with colspan (3), rowspan (4), > the equivalent of line 1, he made the correct colspan, ie colspan equal > to 3. > However, from the second line he started to eat some cells in that cell. That bug has already been fixed: http://itext.

Re: [iText-questions] PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Leonard Rosenthol
Have you validated that those fonts are valid and correct fonts? I suspect there may be an issue with the font data. Leonard -Original Message- From: Agnes Juhasz [mailto:agnes.juh...@polysys.eu] Sent: Tuesday, January 19, 2010 1:25 PM To: itext-questions@lists.sourceforge.net Subject:

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread trumpetinc
As a point of clarification, I'm pretty sure that, in addition to swapping width and height, rotate() signals PdfDocument to add a rotation cm entry to the beginning of the content stream, and adjusts the rotation dictionary entry for the page. And I completely agree with the 'messy code for deal

Re: [iText-questions] Antwort: Re: Setting Up iText and BouncyCastle

2010-01-19 Thread Peter B. West
It's under Other Downloads, Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6 Peter On 20/01/2010, at 11:16 AM, Peter B. West wrote: > Policy files in the Sun JDK go in in jre/ib/security. In there you will find > local_policy.jar and US_export_policy.jar. Get str

Re: [iText-questions] Antwort: Re: Setting Up iText and BouncyCastle

2010-01-19 Thread Peter B. West
Policy files in the Sun JDK go in in jre/ib/security. In there you will find local_policy.jar and US_export_policy.jar. Get stronger versions of these from the SUN JDK download site. Unpack the download file and you will find versions of these files. Replace the current versions in jre/lib/secur

Re: [iText-questions] preview pdf file.

2010-01-19 Thread Mark Storer
Neither iText nor iTextSharp can draw PDF files. THere are several free programs out there that can however, including some in java. Google is your friend. --Mark Storer Senior Software Engineer Cardiff.com #include typedef std::Disclaimer DisCard; -Original Message- From:

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Mark Storer
Ah. So you don't want to spin-the-pages-contents-sideways, you want landscape-vs-portrait. "Rotation" isn't the word you want. You just want to change the page size from 8.5x11 to 11x8.5. By the way, Rectangle.rotate() doesn't really rotate the page either, it swaps the width/height. In PD

Re: [iText-questions] Antwort: Re: Setting Up iText and BouncyCastle

2010-01-19 Thread Rhino
Thank you, that may be the whole problem right there. You're right, I might have found that if I had looked more carefully at the BouncyCastle site. I assumed that if there was some special trick involved in setting up BouncyCastle, it would have been mentioned somewhere in iText or that iText

Re: [iText-questions] Setting Up iText and BouncyCastle

2010-01-19 Thread Rhino
I haven't written a line of Java code, let alone used Eclipse or played with iText in nearly 4 years. Frankly, I am feeling a bit as if I've forgotten absolutely everything. It's NOT particularly easy remembering how to do any of this if you've been away from it for that long How would YOU

[iText-questions] preview pdf file.

2010-01-19 Thread Lord Gustavo Miguel Angel
hi. Can preview to the pdf file with itextsharp? thank´s.-- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees

Re: [iText-questions] ListItems and Table splitting BUG?

2010-01-19 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/19/2010 07:32 PM, 1T3XT info wrote: > Filipe Sousa wrote: >> Is this a bug or am I doing something wrong? > > Why do you keep on repeating this question? > You're only pushing your problem lower on the priority > stack annoying the people who ca

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Ponzer, Phillip
And no, I'm not trying to shrink the page after the fact to fit its content. Basically, what I'm doing is making a new PDF and populating it with all sorts of content (text, tables, images) where I need to dynamically figure out whether each page should be portrait or landscape (PageSize.LETTER

Re: [iText-questions] iText 5.0 documentation

2010-01-19 Thread Mark Storer
No idea. Never noticed it before. It's manually updated by various folks, who presumably know more about Maven than the two of us put together (which doesn't sound challenging). And stay off my lawn... You don't know how good you've got it these days... Why when I was your age... we had ro

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Ponzer, Phillip
Oh, nevermind! I figured it out, ByteArrayOutputStream :P Thanks for the push in the right direction :) From: Mark Storer [mailto:msto...@autonomy.com] Sent: Tuesday, January 19, 2010 5:13 PM To: Post all your questions about iText here Subject: Re: [iText-questio

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Ponzer, Phillip
Before I start frantically searching the internet, I figured I'd ask you: what is "baos"? From: Mark Storer [mailto:msto...@autonomy.com] Sent: Tuesday, January 19, 2010 5:13 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Rotate Pag

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread trumpetinc
Random thought (and more of a mental exercise than a real solution): I wonder if it's possible to insert an object reference for the parameters to a cm operation in a content stream... I know, for example, that it's possible to do this with text operations, so I'd imagine that it's possible with

Re: [iText-questions] iText 5.0 documentation

2010-01-19 Thread Peter B. West
Thanks for that Mark. Much appreciated. But then you are a _Senior_ Software Engineer. Now, maybe you can tell me why there is a pom.xml file in there? Peter On 20/01/2010, at 8:41 AM, Mark Storer wrote: > I don't believe so, no. That's a relatively simple task, but we get lots of > (very..

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Mark Storer
Are you trying to shrink the page after the fact to fit its content? I had to do that very thing just last week: Step 1: Find out where the pages end: Extend PdfPageEventHelper's onEndPage. Cast the Document parameter to a PdfDocument, and call it's getVerticalPosition( true ). Store those "

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Ponzer, Phillip
PDF (I'll take help over "looking witty" any day :P ) And the reason why I want to do this is because I don't know how much space the text (or in my particular case, the table) takes up until it has been added to the document. Any thoughts? Phillip From: Mark S

Re: [iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Mark Storer
Are we talking PDF || HTML || RTF here? (replying "yes", "true", or "1", while witty, won't get you much help... fair warning) ;) --Mark Storer Senior Software Engineer Cardiff.com #include typedef std::Disclaimer DisCard; -Original Message- From: Ponzer, Phillip [mailto:phi

[iText-questions] Rotate Page After Adding Text to Document

2010-01-19 Thread Ponzer, Phillip
Hello everyone, and thanks for your help with my previous question. Here's another one: Is it possible to rotate the page you just added text to? For instance, we have a Document variable called "doc" whose PageSize is set to PageSize.LETTER, and I add some text. Can I make the page where that

Re: [iText-questions] iText 5.0 documentation

2010-01-19 Thread Mark Storer
I don't believe so, no. That's a relatively simple task, but we get lots of (very... ouch) junior Java developers around here, so a little hand-holding on our part might be A Good Thing. I believe there's a way to build an Eclipse project from an ANT build.xml, which is present in the normal s

Re: [iText-questions] Setting Up iText and BouncyCastle

2010-01-19 Thread Peter B. West
The problem is the pom file. When I see a pom file, I assume that the project is set up as a Maven project. So does NetBeans. So after NetBeans checks the project out from Subversion, it sets up a Maven project for it. When I say build, the jars do not get built, as NB finds no contents specifie

Re: [iText-questions] How to draw a composition

2010-01-19 Thread Mark Storer
I suggest you draw all the things you want relative to one another in a PdfTemplate (a subclass of PdfContentByte), and position the template. And given your java.awt-esque use of the word "canvas" you might also want to check out the PdfGraphics2D class (supported in PdfContentByte IIRC). --Ma

Re: [iText-questions] cuotes in itext sharp

2010-01-19 Thread Mark Storer
I suggest you look at the examples, and do whatever they're doing. --Mark Storer Senior Software Engineer Cardiff.com #include typedef std::Disclaimer DisCard; -Original Message- From: heriberto gonzalez martinez [mailto:hgm_1...@hotmail.com] Sent: Tuesday, January 19, 2010

Re: [iText-questions] Spam: Re: PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Mark Storer
I just ran your file through Acrobat Pro's PDF/A-1b check (updated to 9.2.0, which I believe is the latest-n-greatest). No Problems Found. The PDF/A spec states that this is indeed a requirement (section 6.3.6 if you happen to own a copy of the spec). I wouldn't be surprised to find out that P

Re: [iText-questions] cuotes in itext sharp

2010-01-19 Thread heriberto gonzalez martinez
yes, what is the correct way to write ( á, é, í, ó, ú, ñ ) in the XML file and then i can convert to PDF?? > Date: Tue, 19 Jan 2010 20:36:18 +0100 > From: i...@1t3xt.info > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] cuotes in itext sharp > > Heriberto González M

Re: [iText-questions] PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Leonard Rosenthol
Acrobat 9.3's PDF/A validator says that the file is fine and passes validation. -Original Message- From: Agnes Juhasz [mailto:agnes.juh...@polysys.eu] Sent: Tuesday, January 19, 2010 7:44 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PDF/A conformance check:

Re: [iText-questions] cuotes in itext sharp

2010-01-19 Thread 1T3XT info
Heriberto González Martínez wrote: > Hi all > > > > Im using XML to PDF convert then I cant use characters like ( á, é í, ó, > ú, ñ ), Says who? That's a wrong assumption. > how can I do to use it? How can you avoid doing it right? This is an XML containing Arabic and Hebrew: http://1t3xt.

Re: [iText-questions] ListItems and Table splitting BUG?

2010-01-19 Thread 1T3XT info
Filipe Sousa wrote: > Is this a bug or am I doing something wrong? Why do you keep on repeating this question? You're only pushing your problem lower on the priority stack annoying the people who can help you the way you do. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://

[iText-questions] cuotes in itext sharp

2010-01-19 Thread Heriberto González Martínez
Hi all Im using XML to PDF convert then I cant use characters like ( á, é í, ó, ú, ñ ), how can I do to use it? thank -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and bri

Re: [iText-questions] PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Agnes Juhasz
Paulo Soares-3 wrote: > > What does the Acrobat validator say? The only reason for that to happen > was with fonts with fractional widths considering that iText only stores > integer widths but that would be splitting hairs as the error can't be > more than 1/1000. > I have no Acrobat validato

Re: [iText-questions] Get table from PDF IText

2010-01-19 Thread Mark Storer
A: It's not impossible in the first place, it's just Ridiculously Hard. "Practially Impossible" vs "Impossible". It might take a year or two of HIghly Talented developer time, but it could be done. If you've got a couple hundred thousand dollars burning a hole in your pocket, we can get start

[iText-questions] ListItems and Table splitting BUG?

2010-01-19 Thread Filipe Sousa
Hi! I'm having some problems with table splitting and ListItems. Most of the time the last item is repeated and the end of the page as you can see in the attached PDF file. In my case, the text "hello number 9" in first page is repeated in second page. The same happens in the last page with "hell

Re: [iText-questions] Number of page after merging pdf file

2010-01-19 Thread Leonard Rosenthol
Yes, there is a mechanism in PDF (as part of tagging) that would identify text on a page as the "page number". Leonard -Original Message- From: Mike Marchywka [mailto:marchy...@hotmail.com] Sent: Tuesday, January 19, 2010 6:53 PM To: itext-questions@lists.sourceforge.net Subject: Re:

Re: [iText-questions] Number of page after merging pdf file

2010-01-19 Thread Mike Marchywka
> Date: Tue, 19 Jan 2010 18:21:05 +0100 > From: > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Number of page after merging pdf file > > Degla Degla wrote: >> i'm using a method to merge pdf document , i dont find a me

Re: [iText-questions] PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Paulo Soares
What does the Acrobat validator say? The only reason for that to happen was with fonts with fractional widths considering that iText only stores integer widths but that would be splitting hairs as the error can't be more than 1/1000. Paulo > -Original Message- > From: Agnes Juhasz [mai

Re: [iText-questions] Number of page after merging pdf file

2010-01-19 Thread 1T3XT info
Degla Degla wrote: > i'm using a method to merge pdf document , i dont find a method to generate > a good number of pages on footer, i explain : when i merge pdf files, in my > doc i have original page number and not a good numerotation (from 1 to n > but i have many 1) Your PDF is like a book. Me

Re: [iText-questions] page number determination

2010-01-19 Thread 1T3XT info
newoutlook wrote: > The intent here is to validate pdf doc for more readability like validating > table structure in pdf contents. You're talking about Marked Content / Tagged PDF, aren't you? Then why don't you say so? > I am determining a page number for pdf > contents. How did you get the co

[iText-questions] How to draw a composition

2010-01-19 Thread Matthias Müller
Hi there, how do i draw a composition (a parent item that wraps child items that behave relative to the parent). concrete, i wrap multiple image and text items with a container. i only want to specify the containers position and angle, the single items always have to keep the position within th

Re: [iText-questions] page number determination

2010-01-19 Thread newoutlook
The intent here is to validate pdf doc for more readability like validating table structure in pdf contents. I am determining a page number for pdf contents. I parse pdf contents as a tree node like table,list, and link etc...For example, I get indirect reference for node (table) using this statem

[iText-questions] Number of page after merging pdf file

2010-01-19 Thread Degla Degla
i'm using a method to merge pdf document , i dont find a method to generate a good number of pages on footer, i explain : when i merge pdf files, in my doc i have original page number and not a good numerotation (from 1 to n but i have many 1) sorry for my english, i m frensh man ! ''' Concaténer

[iText-questions] PDF/A conformance check: Widths in embedded font are inconsistent with /Widths entry in the font dictionary

2010-01-19 Thread Agnes Juhasz
Hi Paulo, Thanks for the fast answer on my previous question. Now I use PDF/AManager trial from PDFTRON to do conformance check against my PDF document. After making up my PDF with color profile, it gives only one error: Widths in embedded font are inconsistent with /Widths entry in the font dict

Re: [iText-questions] Remove table or stamp from pdf File

2010-01-19 Thread Leonard Rosenthol
Once written to the PDF, all iText object become native PDF objects – and there is no such “table” object in PDF. In order to be able to remove content from a PDF, you will need to deal with the lowest level of PDF objects including the content stream. There are some helper classes in iText (i

Re: [iText-questions] Setting Up iText and BouncyCastle

2010-01-19 Thread 1T3XT info
Rhino wrote: > I know nothing about crypto beyond the fact that it codes information. > What is a policy file? Where precisely do I get it? How do I know > exactly which policy file I need? Where do I install it in Eclipse to > make sure the iText and BouncyCastle classes compile correctly? I d

[iText-questions] Antwort: Re: Setting Up iText and BouncyCastle

2010-01-19 Thread Benjamin Rein
Here is another hint: http://www.bouncycastle.org/documentation.html You could have looked this one up yourself by using the keywords Paulo gave you (i.e. bouncycastle policy file). Best regards Benjamin Von: Rhino An: Post all your questions about iText here Datum: 19.01.2010 14:19 Betreff

[iText-questions] Remove table or stamp from pdf File

2010-01-19 Thread Rahul Soni
Hello All, I have one problem with PdfPTable Requirement is such like I have to stamp pdf file with some text like TEST within the rectangle box. So for this requirement I have used PdfPTable and created one table with once column and added once cell in it and in the cell i have written TEST. T

Re: [iText-questions] Setting Up iText and BouncyCastle

2010-01-19 Thread Rhino
I know nothing about crypto beyond the fact that it codes information. What is a policy file? Where precisely do I get it? How do I know exactly which policy file I need? Where do I install it in Eclipse to make sure the iText and BouncyCastle classes compile correctly? -- Rhino Paulo Soares w