Re: [iText-questions] PDF/A compliance

2009-02-18 Thread mkl
 Hi!
 
 The report code 4000 is due to a quirk of iText: it includes an encoding key 
in the ->AcroForm->DR dictionary. This has been discussed here before, e.g.

 
http://www.nabble.com/Re%3A-Unrecognized-PDF-content%3A-The-document%09contains-PDF-content-or-custom-content-not-supported-by-the%09current-version-of-Adobe-Reader.-p20375513.html

 As Leonard put it there,
 
> The validity checker expects that DR is a standard Resources
> dictionary and flags (as a WARNING) any key that isn't defined
> in the PDFRef.  It doesn't make it wrong/invalid - but our
> syntax checker will flag it.

 As he also pointed out in his answer to you, you have quite a number of actual 
PDF/A issues. You might want to start working on them by updating to iText 
2.1.4 as version 2.1.3 had some PDF/A issues, e.g. the obj not followed by EOL 
issue and maybe the last modification date mismatch.

 Regards,   Michael.

-Original Message-
From: amarianoelaide [mailto:amari...@elaide.com] 
Sent: Wednesday, February 18, 2009 10:54 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF/A compliance


Hi all,
I signed a pdf with an invisible external signature.
Acrobat Reader 8 says that signature validity is unknown because signer's 
identity is unknown and that's right.
But now I also need to create a PDF/A compliant signed pdf.
I'm able to create a PDF/A compliant pdf and also to modify an existing one 
through a PdfStamper without removing that compliance.
But after signing a pdf/a compliant pdf, Acrobat Reader 8 returns report code 
4000: unrecognized pdf content.
I attach also a simple file as a sample of the problem.

What's the problem?
Thanx

http://www.nabble.com/file/p22075512/prova.pdf prova.pdf
--
View this message in context: 
http://www.nabble.com/PDF-A-compliance-tp22075512p22075512.html

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


[iText-questions] NewLine added after doc.Add (table)

2009-02-18 Thread Anders Thomsen
Using ItextSharp:

When adding a table, paragraph etc. to a document using doc.Add(), I
believe a new line is added after the added object. This gives me a
problem when adding a table that just small enough to fit to the end
of the page. The new line is then added and a new (empty) page is
inserted in the end of the document (anyway, this is my theory). This
looks bad if there are no more content to be added to the page.

What to do about this problem?

Cheers,
Anders Thomsen

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] How to extract Tags from a tagged pdf file?

2009-02-18 Thread Leonard Rosenthol
You'll need to write code to use the lower level APIs to walk the structure 
tree in the PDF and then do whatever you'd like (like write as XML).

Leonard

From: prasannab...@aim.com [mailto:prasannab...@aim.com]
Sent: Wednesday, February 18, 2009 1:41 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] How to extract Tags from a tagged pdf file?

Hello,

Can I extract the tags from the Tagged PDF file and create the XML structure? 
If so how to do?

Thanks,
Pbale


A Good Credit Score is 700 or Above. See yours in just 2 easy 
steps!
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] How can I get the font in my PDF to be Arial

2009-02-18 Thread David Thielen
Hi;

 

Ok, I've read through Chapter 8 again. And I've come up with the
following 2 approaches to get a font for text I write to the PDF:

FontFactory.getFont("Arial", BaseFont.IDENTITY_H, false, 12.0, 0);

FontFactory.getFont("Arial", BaseFont.IDENTITY_H, true, 12.0, 0);

FontFactory.getFont("Arial", "Cp1252", false, 12.0, 0);

FontFactory.getFont("Arial", "Cp1252", true, 12.0, 0);

 

And in each case the underlying BaseFont has a name of ArialMT. How can
I get it to create a font with the name Arial? 

 

This is an issue for one of our customers because when they use the text
touch-up tool afterwards it tells them that it cannot find the font
ArialMT on their system, although they do have Arial.

 

Thanks - dave

 

 

 

 

David Thielen
303-499-2544 x1185
720-352-0676 (cell)

 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] How to extract Tags from a tagged pdf file?

2009-02-18 Thread prasannabale
Hello,

Can I extract the tags from the Tagged PDF file and create the XML structure? 
If so how to do? 

Thanks,
Pbale
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Re: [iText-questions] iText-jdk15

2009-02-18 Thread Xavier Le Vourch
Cyr, Pascal wrote:
> Hi.
>
> I made the SVN checkout from the sourceforge directory for the
> itext-jdk15 code but it doesn’t compile. I looked at the errors and the
> problem is that it uses some code from JSE 6. Since I use Rational
> Software Architect 7.0, which uses jdk 1.5, it doesn’t compile.

First a small disclaimer about the iText-jdk15 version taken from
another email I sent to the list recently:

Please do not use the iText-jdk15 branch for development. It's currently
more of an experiment to figure out what will be needed to switch to
Java 1.5. Some changes were needed to make sure generics worked as
expected. You will not get support from the mailing list by using that
version.

Besides, I only update it after each official release so you will not
get the latest unreleased changes.


> Here are the places where the JSE 6 code is used.
> [...]

Those three classes are part of the toolbox module and even the version
on the trunk requires the 1.6 jdk to compile.

Only the iText.jar and iText-rtf.jar can be built with jdk 1.4 in the
official version and with jdk 1.5 on the iText-jdk15 branch.



Best regards,
Xavier Le Vourch

-- 
Xavier Le Vourch

PGP Key (ID 0x896C5947): http://xlv-labs.com/gpg_key.asc
Key fingerprint: 73B3 6370 B8C5 4325 F2D8  4115 0372 5805 896C 5947

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Re: [iText-questions] PDF/A compliance

2009-02-18 Thread Leonard Rosenthol
The signature is fine, but you have a LOT of PDF/A issues.

I've enclosed a screen shot from Acrobat 9's Preflight feature.

Leonard

-Original Message-
From: amarianoelaide [mailto:amari...@elaide.com] 
Sent: Wednesday, February 18, 2009 4:54 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF/A compliance


Hi all,
I signed a pdf with an invisible external signature.
Acrobat Reader 8 says that signature validity is unknown because signer's
identity is unknown and that's right.
But now I also need to create a PDF/A compliant signed pdf.
I'm able to create a PDF/A compliant pdf and also to modify an existing one
through a PdfStamper without removing that compliance.
But after signing a pdf/a compliant pdf, Acrobat Reader 8 returns report
code 4000: unrecognized pdf content.
I attach also a simple file as a sample of the problem.

What's the problem?
Thanx

http://www.nabble.com/file/p22075512/prova.pdf prova.pdf 
-- 
View this message in context: 
http://www.nabble.com/PDF-A-compliance-tp22075512p22075512.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
<>--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] usage of iText

2009-02-18 Thread Venkatraman, Srikumar IN BOM SISL
Dear Bruno,

I have been using iText for quite sometime whenever there is need to create 
pdf's  I find it the most convenient utility for creating pdf's.

I needed to know if iText 2.1.4 is compatible with Windows Mobile OS 5.0 /6.0

I have been trying to use it but I am getting no Class Def Found error. I am 
going through your list of reasons for the no class def  found error. Also I 
would be using Crème (PDA based version of Java) 3.4.2 for running applications 
on the PDA's.

Need to know if there is some issues with using the same in the above scenario.

With Best Regards

Srikumar Venkatraman
Siemens IT Solutions and Services
PRO-SSW-Technology 130,
Pandurang Budhkar Marg,
Worli, Mumbai 400 018.

Direct: +91 22 24987867
Mobile: + 91 9819231944
FAX: +91 22 6660 8519
Mailto: srikumar.venkatra...@siemens.com
www.siemens.co.in

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] iText-jdk15

2009-02-18 Thread Cyr, Pascal
Hi.

 

I made the SVN checkout from the sourceforge directory for the itext-jdk15 code 
but it doesn't compile. I looked at the errors and the problem is that it uses 
some code from JSE 6. Since I use Rational Software Architect 7.0, which uses 
jdk 1.5, it doesn't compile.

 

Here are the places where the JSE 6 code is used.

 

In the initialize() method of the Versions.java class, the 
javax.swing.RowSorter class is used. This class was introduced in jdk 1.6 

 

The class AbstractTool.java uses java.awt.Desktop, which was introduced in jdk 
1.6

 

The class CustomDialog.java uses the method createDialog(String) from the class 
javax.swing.JOptionPane. This method was also introduced in jdk 1.6

 

Thank you.

Pascal Cyr 
Programmeur-analyste 
Applications d'affaires électroniques
Société des alcools du Québec 
Téléphone: (514) 254-6000 ext 5046
Télécopieur: (514) 873-9021

 



___
Information confidentielle:
Le présent message, ainsi que tout fichier qui y est joint, est envoyé à 
l'intention exclusive de son ou de ses destinataires; il est de nature 
confidentielle et peut constituer une information privilégiée. Nous avertissons 
toute personne autre que le destinataire prévu que tout examen, réacheminement, 
impression, copie, distribution ou autre utilisation de ce message et de tout 
fichier qui y  est joint est strictement interdit. Si vous n'êtes pas le 
destinataire prévu, veuillez en aviser immédiatement l'expéditeur par retour de 
courriel et  supprimer ce message et tout document joint de votre système. 
Merci.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] PDF/A compliance

2009-02-18 Thread amarianoelaide

Hi all,
I signed a pdf with an invisible external signature.
Acrobat Reader 8 says that signature validity is unknown because signer's
identity is unknown and that's right.
But now I also need to create a PDF/A compliant signed pdf.
I'm able to create a PDF/A compliant pdf and also to modify an existing one
through a PdfStamper without removing that compliance.
But after signing a pdf/a compliant pdf, Acrobat Reader 8 returns report
code 4000: unrecognized pdf content.
I attach also a simple file as a sample of the problem.

What's the problem?
Thanx

http://www.nabble.com/file/p22075512/prova.pdf prova.pdf 
-- 
View this message in context: 
http://www.nabble.com/PDF-A-compliance-tp22075512p22075512.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Why something like ArabicLigaturizer will not work for Indian Scripts like Hindi , Tamil and Others.

2009-02-18 Thread 1T3XT info
RKVS Raman wrote:
> Character change their
> forms based on the characters next to them and sometimes join to form
> a different ligature which is only defined in the font's substitution
> tables. Since iText does not use any intelligence from the
> substitution tables, it will miserably fail at creating conjunct
> forms.

I have looked at Indic ligatures a long time ago (in 2005),
but I don't know Hindi and I didn't understand the complex rules
for making ligatures. After consulting somebody at the Faculty of
Literature specialized in Hindi, I also realized that it was very
different from Arabic.

> Can Bruno tell me what can i do to make iText support ligature
> substitutions from font.

I don't know what to look for in the font.
Maybe if you could give me some examples:
a sequence of bytes (original form) and then the ligaturized version.
Please explain where I can find the info to replace the original bytes
with the ligaturized ones.

URLs to websites are welcome too. I did some research in 2005,
but most of the sites were too complex for me (they assumed plenty
of knowledge about Indic languages).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


[iText-questions] Getting ttf file from font name

2009-02-18 Thread quam-usp

Hello everybody,
I think than the subject is clear. I wanna create a BaseFont for a new text,
and I have the font name from a field, but don't know how to get the ttf of
this font.
Any idea?
-- 
View this message in context: 
http://www.nabble.com/Getting-ttf-file-from-font-name-tp22077143p22077143.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


[iText-questions] Why something like ArabicLigaturizer will not work for Indian Scripts like Hindi , Tamil and Others.

2009-02-18 Thread RKVS Raman
Hi,

For past some days I have been studying iText ArabicLigaturizer code
very carefully with an intent to customize it to Indian Languages.

I have come to realise that the IndicLigaturizer cannot be written in
the same way. That's because iText writes out the text character  by
character. In Arabic all characters in all their forms have been
already defined in Unicode and so it is just a matter of replacing the
characters according to whether they are in initial, medial, final  or
isolated forms. And everything works well because each character form
has a different ligature and glyph associated with it in the font.

But same is not the case with Indian Scripts. Character change their
forms based on the characters next to them and sometimes join to form
a different ligature which is only defined in the font's substitution
tables. Since iText does not use any intelligence from the
substitution tables, it will miserably fail at creating conjunct
forms.

Can Bruno tell me what can i do to make iText support ligature
substitutions from font.

I can help you in providing whatever information you need to make it
support complex scripts.


Best Regards
-Raman

---
RKVS Raman
BOSS Resource
http://www.bosslinux.in
http://rkvsraman.blogspot.com


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php