Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Schalück , Elmar
Hi, Maybe it's the same problem I had a year ago. Are you working with setCharAdvance? It will break PDF/A conformance. See: http://www.nabble.com/PDF-A-and-BaseFont.setCharAdvance-will-give-errors-td15090763.html#a15090763 Regards, Elmar > Sorry for replying to myself, but I think it's interest

[iText-questions] Font for freetext annotation

2008-11-24 Thread Schalück , Elmar
Hi, I want to control the font used for a freetext annotation to be PDF/A compatible. Doing it this way, my own basefont will not be used. Is there a way to have iText referencing my font. Snippet: BaseFont courier = BaseFont.createFont(path + "DejaVuSansMono.ttf", BaseFont.IDENTITY_H, true); Pdf

Re: [iText-questions] Problem with PDF/A validation

2008-11-20 Thread Schalück , Elmar
Hi, Leonard! Thanks for your hints. Intarsys really had a problem with embedded font recognition. It will be fixed in the next version of their online validation tool this week. BTW: The minimal requirements for PDF/A-1a concerning MarkInfo and StructTreeRoot entries can be done with the followi

Re: [iText-questions] Problem with PDF/A validation

2008-11-18 Thread Schalück , Elmar
Clarification: Intarsys reports: 1 Error: Font QTCBLA+DejaVuSansMono must be embedded 2 Warnings: No unique ID found No history entry existing Report was in German, so the translation may be suboptimal. So why does Intarsys think, the font isn't embedded? Elmar > Don't know what they are

[iText-questions] Comments on com.lowagie.text.pdf.parser addition to SVN

2008-11-06 Thread Schalück , Elmar
Hi, another idea was to extract the images and do some OCR on them (e.g. with tesseract) and put the text behind the image to be better searchable. Elmar >Kevin Day wrote: >> I saw mention a bit earlier of using the content parser to determine >> embedded image (or other xobject) location, etc...

Re: [iText-questions] Problem with generating PDF/A with iText

2008-08-18 Thread Schalück , Elmar
> You're right about the specification but do you know of any validator that > cares about it? (It will be fixed, > nonetheless) > Paulo Yes, it's online: http://www.intarsys.de/produkte/pdf-a-live/pdf-a-check-1 Elmar - T

[iText-questions] Problem with generating PDF/A with iText

2008-08-18 Thread Schalück , Elmar
Hi, I'm building PDF/A documents with iText, but I have a problem with the validation. What's going wrong? The PDF/A specification demands in 6.1.8: ... The obj and endobj keywords shall each be followed by an EOL marker. This is the case for endobj, but not for obj. If you inspect the class com

Re: [iText-questions] Arial Unicode MS alternative

2008-05-28 Thread Schalück , Elmar
Nice Arial like font. http://dejavu.sourceforge.net/ <>- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120

Re: [iText-questions] Get byte count during pdf generation?

2008-04-23 Thread Schalück , Elmar
>Date: Wed, 23 Apr 2008 10:53:37 +0200 >From: "GAMBELLI Raffaele" <[EMAIL PROTECTED]> >Subject: [iText-questions] Get byte count during pdf generation? >To: >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset="iso-8859-1" > >Hi all, >is there a way to retrieve bytes co

Re: [iText-questions] Multipage TIFF containing TiFF and JPEG and Tiles

2008-02-22 Thread Schalück , Elmar
Hi, I had the same problem. The solution is to use JAI-ImageIO to read those terric tiffs. I read the image with imageio means into a BufferedImage, encode it to a byte array as a JPEG image and then read with iText methods into an iText Image. ImageIO is able to read almost any (really) strang

[iText-questions] PDF/A and BaseFont.setCharAdvance will give errors

2008-01-25 Thread Schalück , Elmar
Hi, I am embedding a Unicode ttf font and afterwards use setCharAdvance to adjust the CPI settings for my font. This works fine and yields the desired results. But now I have to produce PDF/A-1b correctly. Acrobat 8.1 is mocking on 'Width information for characters is inconsistent' (or whatever

Re: [iText-questions] Problem with Font creation.

2008-01-04 Thread Schalück , Elmar
Hi, sorry to answer so late. Had some Christmas days off :-) I had the same problem and resolved the font loading as follows: InputStream ris = this.getClass().getResourceAsStream("/DejaVuSansMono.ttf"); byte[] ttfAfm = IOUtils.toByteArray(ris); ris.close(); BaseFont dejaVuSans = BaseFont.creat

Re: [iText-questions] CPI (horizontal spacing) for Chunk or Paragraph

2007-08-03 Thread Schalück , Elmar
Yes, it works fine with your hints. I chose the setCharAdvance way. BTW, DesiredCharAdvance = 72 (pt) * 1000 (fontunit) / (desiredCPI) / (fontsize). Thanks Elmar - This SF.net email is sponsored by: Splunk Inc. Still greppin

Re: [iText-questions] CPI (horizontal spacing) for Chunk or

2007-08-01 Thread Schalück , Elmar
Yes, it's a monospace ttf font. But on which parameters do I have to do some math? I don't want to change the font size, just enlarge the space between the characters. Thanks Elmar >Schal?ck wrote: >> Hi, >> I need to do reports with predefined values for CPI (characters per inch). I >> saw a

[iText-questions] CPI (horizontal spacing) for Chunk or Paragraph

2007-08-01 Thread Schalück , Elmar
Hi, I need to do reports with predefined values for CPI (characters per inch). I saw a technique using PdfGraphics2D in a thread in the archives, but to me Chunk or Paragraph would be easier. Do we have any tools for this? Elmar ---

[iText-questions] Reducing memory for JAI-ImageIO images

2007-07-19 Thread Schalück , Elmar
Hi, it's a bit of off topic :-( I load an image (tiff multipage with old jpeg in tiff encoding) via JAI ImageIO. The resulting image is larger than the memory within the original tiff. So my resulting PDF is about twice the size of the original tiff file. Does anyone has any good idea about reducin

[iText-questions] Problems with reading a TTF font

2007-06-26 Thread Schalück , Elmar
Hi, anyone got a similar problem? I am embedding a free TTF font (DejaVu-Mono,http://dejavu.sourceforge.net/) read in via resources in a web environment. In some strange situations (not within Eclipse-DIE, but within ant unit tests from command line) I have a java.lang.NegativeArraySizeException

[iText-questions] Addition to generate PDF/A 1a

2007-06-14 Thread Schalück , Elmar
Hi, I was able to produce valid PDF/A 1a (not only 1b) for very simple documents. You may use this as a hint for further evaluation. this.writer = PdfWriter.getInstance(this.doc, out); this.writer.setPDFXConformance(PdfWriter.PDFA1B); doc.open(); try { // Do PDF/A support

[iText-questions] Using default fonts in PDFA

2007-06-13 Thread Schalück , Elmar
Hi, I want to use the standard Type 1 fonts (e.g. COURIER) within PDFA. It is not possible to embed this font into my pdf document (see BaseFont.createFont). But when I close the document, the PdfXConformanceImp.checkPDFXConformance rejects this font, since it isn't embedded. Now the real questio

[iText-questions] Problems with PageFormats for image-only pages

2007-06-06 Thread Schalück , Elmar
Hi, I'm trying to render images as PDF dynamically, using the page size of the original image. When I look at my PDF the page size seems to be incorrectly set. When I use Paragraph instead of Image the page size works as expected. Looking into the source, my guess is the difference between cre