Re: [iText-questions] ODT to PDF conversion

2010-01-14 Thread Mark Storer
iText?  No.
 
OpenOffice does, and is open source.  Start digging.  
http://wiki.services.openoffice.org/wiki/API
 

--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include  
typedef std::Disclaimer DisCard; 

-Original Message-
From: satish viswanatham [mailto:satish.viswanat...@gmail.com]
Sent: Thursday, January 14, 2010 3:10 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] ODT to PDF conversion


Hi,

I read iText documentation. It is not clear to me whether it is possible to 
convert Open office document (ODT) to a pdf file. JOpenDoc 
  folks provided code to 
convert Open office spread sheet file (ODS).

Is there a similar functionality in iText to do the conversion from ODT to PDF?

Helpful pointers would be appreciated.

Thanks
Satish


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] ODT to PDF conversion

2010-01-14 Thread satish viswanatham
Hi,

I read iText documentation. It is not clear to me whether it is possible to
convert Open office document (ODT) to a pdf file.
JOpenDocfolks provided
code to convert Open office spread sheet file (ODS).

Is there a similar functionality in iText to do the conversion from ODT to
PDF?

Helpful pointers would be appreciated.

Thanks
Satish
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Unit Testing, Stress Testing, Profiling...

2010-01-14 Thread trumpetinc

For what it's worth, I've been able to create some pretty good content based
unit tests using the parser...  I have a filtering parser that I've put
together (haven't committed it yet) that allows you to specify a region of
the page to extract text from.  This makes it pretty easy to determine if
text was placed in the correct location.

It won't work for everything, of course, but for functionality related to
layout, etc... this may be useful.

Cheers,

- K 

-- 
View this message in context: 
http://old.nabble.com/Re%3A-Unit-Testing%2C-Stress-Testing%2C-Profiling...-tp27156414p27167317.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] need help regarding barcode

2010-01-14 Thread Paulo Soares
See http://1t3xt.be/?X0009d3.

Paulo 

> -Original Message-
> From: Venu Repaka [mailto:rven...@gmail.com] 
> Sent: Wednesday, January 13, 2010 11:33 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] need help regarding barcode
> 
> Hi friends,
> 
> I am new to iText.
> 
> I want to display bar code using iText and add some data to 
> it (Barcode). 
> 
> 
> I need to add current date to the barcode.
> 
> When we scan the bar code, we need to get the current date. 
> Any help would be greatly appreciated.
> 
> Waiting for your reply.
> 
> Regards, 
> Venu Repaka,
> Cell: 515-867-3263,
> E-Mail: rven...@gmail.com
> 
> 
> 

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Unit Testing, Stress Testing, Profiling...

2010-01-14 Thread Mike Marchywka









> Date: Thu, 14 Jan 2010 09:14:30 -0800
> From:
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Unit Testing, Stress Testing, Profiling...
>
> All the unit tests are available in the source downloads at 
> http://sourceforge.net/projects/itext/files/ . You can also get the trunk 
> from SVN at
>
> I don't believe there's anything in the way of performance testing in there, 
> just the basic "yes: it ran, no: it didn't explode, yes: there's an 
output file" stuff. GOOD unit tests for PDF are Very Hard.

I don't see why this is inherently true but it is yet another reason to contain 
the black box PDF and extra formating stuff as much as possible. 
Comparing structured data like XML files is easier and usually more meaningful 
than comparing sets of pixels.
If you need to put human readable stuff in
the loop, you can still render it somewhere and either compare pixel for pixel 
to known good results or
generate various metrics to sanity check it ( take generated output and at 
least count pages, collect pixel statistics, etc). You can always
time it, simple performance metrics are no more difficult here than elsewhere. 
I used to do some java based media
and still wanted automated testing- with a little thought you can produce 
various figures of merit even when generating
output for human consumption, people do routinely test audio and video 
processing systems without a person sitting there. 
I can't imagine off hand how you have high confidence in stuff you generate
with itext without having an open source rendering system from which you can 
"see what you've done" and collect
automated results for regression testing etc. For changes that "shouldn't 
matter" you should have the same
pixels you "used to have" or be able to account for the difference. 

Generally anything you do is meant to feed some other processing step or is  
invertible to some extent and that 
inversion or "next" step should be part of your quality control.
If you are making a pdf file for human consumption, some automated tools should 
be able to look at the results
and evaluate them by simple criteria. This is much much harder than just trying 
to look at  a few numbers  ( such
as the numerical entries on an IRS form ) but if you want human readable this 
is what happens. 

>
>
>
> --Mark Storer
> Senior Software Engineer
> Cardiff.com
>
> #include 
> typedef std::Disclaimer DisCard;
>
>
>
>> -Original Message-
>> From: Ghady Diab [mailto:ghady.d...@live.com]
>> Sent: Wednesday, January 13, 2010 11:54 AM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Unit Testing, Stress Testing,
>> Profiling...
>>
>>
>> Hey,
>>
>> It's Ghady DIAB from Lebanon. I'm really interested in your
>> iTextSharp
>> library (C#), and I'm working on a small project using it for
>> my university.
>>
>> Is there a way I can get the Unit Tests you did for this
>> library as well as
>> stress testing and profiling documents (results).
>>
>> If these documents are not available for free, I'll pay. Just
>> let me know if
>> they're available and how can I access them.
>>
>> Thanks in advance.
>>
>> Respectfully,
>> Ghady DIAB
>> --
>> From: "Bruno Lowagie" 
>> Sent: Wednesday, January 13, 2010 9:20 PM
>> To: "Ghady Diab" 
>> Cc: 
>> Subject: Re: Unit Testing, Stress Testing, Profiling...
>>
>>> Ghady Diab wrote:
 Hey,
 It's Ghady DIAB from Lebanon. I'm really interested in
>> your iTextSharp
 library (C#), and I'm working on a small project using it for my
 university.
 Is there a way I can get the Unit Tests you did for this
>> library as well
 as stress testing and profiling documents (results).
 If these documents are not available for free, I'll pay.
>> Just let me
 know if they're available and how can I access them.
>>>
>>> That's not really a sales question. The people who write
>> unit tests are on
>>> the mailing list (Xavier Le Vourch, Kevin Day); you should
>> post your
>>> question there. The address is
>> itext-questions@lists.sourceforge.net but
>>> you should register first as I'm the only one who can
>> approve questions,
>>> and I'm teaching iText in Paris the next two days (meaning:
>> I'll probably
>>> won't be online much).
>>> best regards,
>>> Bruno
>>>
>>
>> --
>> 
>> Throughout its 18-year history, RSA Conference consistently
>> attracts the
>> world's best and brightest in the field, creating
>> opportunities for Conference
>> attendees to learn about information security's most
>> important issues through
>> interactions with peers, luminaries and emerging and
>> established companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourcefor

Re: [iText-questions] Licensing questions

2010-01-14 Thread Paulo Soares
The AGPL license only says that you must distribute your source code to your 
users/clients. You may also buy a commercial license to keep your code closed 
to your clients. More answers below.

> -Original Message-
> From: Anders Thomsen [mailto:j...@andersthomsen.dk] 
> Sent: Thursday, January 14, 2010 1:41 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Licensing questions
> 
> I'm a bit confused about with license change to AGPL.
> 
> Is a commercial company allowed to, while keeping its own 
> software closed:
> 
> 1) Use the IText library within the company in internally 
> developed applications ( this should be no problem, right? ).

No problem.

> 2) Use the IText library on a company website that can be 
> reached from outside. It will be used to generate reports 
> etc. that users can download on demand.
> 

You'll have to provide your website source code to your clients unless you buy 
a commercial license.

Paulo

> - Anders
> 
> 

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Upper Unicode Chars PDF Support

2010-01-14 Thread Paulo Soares
Use a font that has the character, such as arial.ttf, with the encoding 
Identity-H.

Paulo

> -Original Message-
> From: Ponzer, Phillip [mailto:phillip.pon...@garmin.com] 
> Sent: Thursday, January 14, 2010 5:25 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Upper Unicode Chars PDF Support
> 
> Hello again everyone,
> 
>  
> 
> Just to be clear, I have tried using the examples provided 
> with iText to output upper Unicode (UTF-16BE) characters 
> (such as the infinity symbol) to a PDF but have had no luck.
> 
>  
> 
> Is this possible? Has anyone had success in doing it? If so, 
> how do I do it as well?
> 
>  
> 
> Thanks,
> 
> Phillip
> 
>  
> 
> 
> 
> From: Ponzer, Phillip [mailto:phillip.pon...@garmin.com] 
> Sent: Wednesday, January 13, 2010 5:41 PM
> To: Post all your questions about iText here
> Subject: [iText-questions] Upper Unicode Chars PDF Support
> 
>  
> 
> Hello everyone,
> 
>  
> 
> How do I add characters such as the infinity symbol (U+221E) to a PDF?
> 
>  
> 
> Thanks,
> 
> Phillip


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Unit Testing, Stress Testing, Profiling...

2010-01-14 Thread Paulo Soares
As Mark said units tests for PDF are virtually impossible because it's 
extremely difficult to verify that a PDF is correct other than by opening and 
looking at it.

Paulo

> -Original Message-
> From: Mark Storer [mailto:msto...@autonomy.com] 
> Sent: Thursday, January 14, 2010 5:15 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Unit Testing, Stress Testing, 
> Profiling...
> 
> All the unit tests are available in the source downloads at 
> http://sourceforge.net/projects/itext/files/ .  You can also 
> get the trunk from SVN at 
> 
> I don't believe there's anything in the way of performance 
> testing in there, just the basic "yes: it ran, no: it didn't 
> explode, yes: there's an output file" stuff.  GOOD unit tests 
> for PDF are Very Hard.
> 
> 
> 
> --Mark Storer 
>   Senior Software Engineer 
>   Cardiff.com
> 
> #include  
> typedef std::Disclaimer DisCard; 
> 
> 
> 
> > -Original Message-
> > From: Ghady Diab [mailto:ghady.d...@live.com]
> > Sent: Wednesday, January 13, 2010 11:54 AM
> > To: itext-questions@lists.sourceforge.net
> > Subject: Re: [iText-questions] Unit Testing, Stress Testing,
> > Profiling...
> > 
> > 
> > Hey,
> > 
> > It's Ghady DIAB from Lebanon. I'm really interested in your 
> > iTextSharp 
> > library (C#), and I'm working on a small project using it for 
> > my university.
> > 
> > Is there a way I can get the Unit Tests you did for this 
> > library as well as 
> > stress testing and profiling documents (results).
> > 
> > If these documents are not available for free, I'll pay. Just 
> > let me know if 
> > they're available and how can I access them.
> > 
> > Thanks in advance.
> > 
> > Respectfully,
> > Ghady DIAB
> > --
> > From: "Bruno Lowagie" 
> > Sent: Wednesday, January 13, 2010 9:20 PM
> > To: "Ghady Diab" 
> > Cc: 
> > Subject: Re: Unit Testing, Stress Testing, Profiling...
> > 
> > > Ghady Diab wrote:
> > >> Hey,
> > >>  It's Ghady DIAB from Lebanon. I'm really interested in 
> > your iTextSharp 
> > >> library (C#), and I'm working on a small project using it for my 
> > >> university.
> > >>  Is there a way I can get the Unit Tests you did for this 
> > library as well 
> > >> as stress testing and profiling documents (results).
> > >>  If these documents are not available for free, I'll pay. 
> > Just let me 
> > >> know if they're available and how can I access them.
> > >
> > > That's not really a sales question. The people who write 
> > unit tests are on 
> > > the mailing list (Xavier Le Vourch, Kevin Day); you should 
> > post your 
> > > question there. The address is 
> > itext-questions@lists.sourceforge.net but 
> > > you should register first as I'm the only one who can 
> > approve questions, 
> > > and I'm teaching iText in Paris the next two days (meaning: 
> > I'll probably 
> > > won't be online much).
> > > best regards,
> > > Bruno


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Upper Unicode Chars PDF Support

2010-01-14 Thread Leonard Rosenthol
Using what font and encoding?

From: Ponzer, Phillip [mailto:phillip.pon...@garmin.com]
Sent: Thursday, January 14, 2010 12:25 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Upper Unicode Chars PDF Support

Hello again everyone,

Just to be clear, I have tried using the examples provided with iText to output 
upper Unicode (UTF-16BE) characters (such as the infinity symbol) to a PDF but 
have had no luck.

Is this possible? Has anyone had success in doing it? If so, how do I do it as 
well?

Thanks,
Phillip


From: Ponzer, Phillip [mailto:phillip.pon...@garmin.com]
Sent: Wednesday, January 13, 2010 5:41 PM
To: Post all your questions about iText here
Subject: [iText-questions] Upper Unicode Chars PDF Support

Hello everyone,

How do I add characters such as the infinity symbol (U+221E) to a PDF?

Thanks,
Phillip


This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient. If you are not the intended recipient, please be 
aware that any disclosure, copying, distribution or use of this e-mail or any 
attachment is prohibited. If you have received this e-mail in error, please 
contact the sender and delete all copies.

Thank you for your cooperation.
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Upper Unicode Chars PDF Support

2010-01-14 Thread Ponzer, Phillip
Hello again everyone,

Just to be clear, I have tried using the examples provided with iText to output 
upper Unicode (UTF-16BE) characters (such as the infinity symbol) to a PDF but 
have had no luck.

Is this possible? Has anyone had success in doing it? If so, how do I do it as 
well?

Thanks,
Phillip


From: Ponzer, Phillip [mailto:phillip.pon...@garmin.com]
Sent: Wednesday, January 13, 2010 5:41 PM
To: Post all your questions about iText here
Subject: [iText-questions] Upper Unicode Chars PDF Support

Hello everyone,

How do I add characters such as the infinity symbol (U+221E) to a PDF?

Thanks,
Phillip


This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient. If you are not the intended recipient, please be 
aware that any disclosure, copying, distribution or use of this e-mail or any 
attachment is prohibited. If you have received this e-mail in error, please 
contact the sender and delete all copies.

Thank you for your cooperation.
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] FW: XFA manipulation renders pdf unreadable by LiveCycle

2010-01-14 Thread Klaus Vancamelbeke
I'm in doubt if my mail reached the mailing list, if this is a double post,
my apologies...

Does anyone have an idea what is wrong with the below code excerpt?

Tia,

Klaus

-Oorspronkelijk bericht-
Van: Klaus Vancamelbeke [mailto:kl...@actina.be] 
Verzonden: woensdag 13 januari 2010 2:23
Aan: 'iText-questions@lists.sourceforge.net'
Onderwerp: RE: [iText-questions] XFA manipulation renders pdf unreadable by
LiveCycle

Hi,

Thanks for the answers so far.

I've upgraded to iText# 5 in the meanwhile and am trying to generate a pdf
based on fillXfaForm. I'm stumbling on a problem where the xfaForm does
populate the xml data fed to the fillXfaForm method (determined at runtime
in debug) but the saved pdf does not contain or show the data. I've included
the lines of code used below and am hoping someone can point out a flaw...

PdfReader pdfReader = new PdfReader(templatePath);
FileStream pdfStream = new FileStream(pdfPath, FileMode.Create);
PdfStamper pdfStamper = new PdfStamper(pdfReader, pdfStream);
XfaForm xfaForm = new XfaForm(pdfReader);
xfaForm.FillXfaForm(content.SelectSingleNode("IKG"));
//verified: content is inserted in the xfa:data section in memory here
pdfStamper.Close();

Tia,

Klaus

-Oorspronkelijk bericht-
Van: 1T3XT info [mailto:i...@1t3xt.info] 
Verzonden: dinsdag 12 januari 2010 17:58
Aan: Post all your questions about iText here
Onderwerp: Re: [iText-questions] XFA manipulation renders pdf unreadable by
LiveCycle

Leonard Rosenthol wrote:
[1]
> The iText# version uses the old, single stream representation of the XFA
key.
> The Acrobat Pro version uses the new array-of-streams representation for
the XFA key. 
> As recommended by ISO 32000-1, you should be using the array version for
best compatibility.

So does the iText 5 method fillXfaForm();
See http://itextpdf.com/examples/index.php?page=example&id=165
The OP uses an old technique.

[2]
> The  DOMs are also different: the Acrobat Pro version is the result
of a merge with data
> while the iText# version appears to be an empty merge (although it also
has more fields in it).

Is that necessary?
I thought the idea was to separate the data from the presentation...

If the problem is caused by [1], the solution would be to upgrade to 
iText 5 (note that the license has changed to AGPL).
If the problem is caused by [2], then we'll need to add functionality to 
iText so that the  reflects the data.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.725 / Virus Database: 270.14.134/2613 - Release Date: 01/12/10
08:35:00


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Unit Testing, Stress Testing, Profiling...

2010-01-14 Thread Mark Storer
All the unit tests are available in the source downloads at 
http://sourceforge.net/projects/itext/files/ .  You can also get the trunk from 
SVN at 

I don't believe there's anything in the way of performance testing in there, 
just the basic "yes: it ran, no: it didn't explode, yes: there's an output 
file" stuff.  GOOD unit tests for PDF are Very Hard.



--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include  
typedef std::Disclaimer DisCard; 



> -Original Message-
> From: Ghady Diab [mailto:ghady.d...@live.com]
> Sent: Wednesday, January 13, 2010 11:54 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Unit Testing, Stress Testing,
> Profiling...
> 
> 
> Hey,
> 
> It's Ghady DIAB from Lebanon. I'm really interested in your 
> iTextSharp 
> library (C#), and I'm working on a small project using it for 
> my university.
> 
> Is there a way I can get the Unit Tests you did for this 
> library as well as 
> stress testing and profiling documents (results).
> 
> If these documents are not available for free, I'll pay. Just 
> let me know if 
> they're available and how can I access them.
> 
> Thanks in advance.
> 
> Respectfully,
> Ghady DIAB
> --
> From: "Bruno Lowagie" 
> Sent: Wednesday, January 13, 2010 9:20 PM
> To: "Ghady Diab" 
> Cc: 
> Subject: Re: Unit Testing, Stress Testing, Profiling...
> 
> > Ghady Diab wrote:
> >> Hey,
> >>  It's Ghady DIAB from Lebanon. I'm really interested in 
> your iTextSharp 
> >> library (C#), and I'm working on a small project using it for my 
> >> university.
> >>  Is there a way I can get the Unit Tests you did for this 
> library as well 
> >> as stress testing and profiling documents (results).
> >>  If these documents are not available for free, I'll pay. 
> Just let me 
> >> know if they're available and how can I access them.
> >
> > That's not really a sales question. The people who write 
> unit tests are on 
> > the mailing list (Xavier Le Vourch, Kevin Day); you should 
> post your 
> > question there. The address is 
> itext-questions@lists.sourceforge.net but 
> > you should register first as I'm the only one who can 
> approve questions, 
> > and I'm teaching iText in Paris the next two days (meaning: 
> I'll probably 
> > won't be online much).
> > best regards,
> > Bruno
> > 
> 
> --
> 
> Throughout its 18-year history, RSA Conference consistently 
> attracts the
> world's best and brightest in the field, creating 
> opportunities for Conference
> attendees to learn about information security's most 
> important issues through
> interactions with peers, luminaries and emerging and 
> established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
> Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Roumanian characters not shown in HTMLWorker parsed fragments

2010-01-14 Thread Traian Decebal
Hi list,

Now I ran into another problem regarding HTMLWorker.
When I run tha code you suggested for this piece of HTML :

 
 a
aa aaa
aaa
aa
aa
asd asd asd asd 4 fghfghfgj fgk asgjdk
asjk sadg askdh askdg asdjkg askjdg asjkdgha sjkadg sjkdg askdg aksjdg aksdg
askdga sdkgaskdjgh asdkg askdg aksdgh ahdg asdkhgahsdg asjkdg asgd asjdg
ahsdkg askdg askgd aksdgj asjkdg asjkd akj
asdasdadj lk sdjaklsjkd a
privind expeditia:Data expeditiei: Borderou: Pozitie
asdkajsldj asd asd asd
asd d asd asdasd
adsdasdasd asdjkg asdf sdasd casd csdc asdh ajkas da
d asdkj asd
 s]daid as
d
aopsd
asd


It throws this exception :

com.itextpdf.text.DocumentException: java.lang.IllegalArgumentException: No
message found for font.size.too.small.1

I think there is something related to styles.

Thanks for any suggestion,
NArcis
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Licensing questions

2010-01-14 Thread Anders Thomsen
I'm a bit confused about with license change to AGPL.

Is a commercial company allowed to, while keeping its own software closed:

1) Use the IText library within the company in internally developed
applications ( this should be no problem, right? ).
2) Use the IText library on a company website that can be reached from
outside. It will be used to generate reports etc. that users can download on
demand.

- Anders
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] [RTF] iText 5.0.0

2010-01-14 Thread Traian Decebal
Hi all,

I need to test some features that I've succesfully used with iText for PDF,
but this time by creating RTF documents.
I've seen that the RTF support was removed starting with version 5.0.0 and
that it was created a new project :

http://sourceforge.net/projects/itextrtf/files/

Unfortunately there are no jars available for download. Does anybody knows
where can I get them ?
I'm sorry to ask this question on the PDF mailing list.

Thanks,
NArcis
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Read PDF, change text, store?

2010-01-14 Thread Leonard Rosenthol
You can "flatten" the fields after filling...

-Original Message-
From: David Balažic [mailto:xerc...@gmail.com] 
Sent: Thursday, January 14, 2010 4:48 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Read PDF, change text, store?

Leonard Rosenthol  adobe.com> writes:
 
> They are just placeholders - they "go away" when you fill them and just leave
the text.
> 
> All commercial PDF editors (Acrobat, etc.) support creating them.

Great, I tried it and works. Thanks!

Just one more "nitpick":
After the user opens the resulting PDF file in the reader (like Foxit Reader),
he can edit the form content. Is there a way to mark it read-only or some other
way to prevent changes?

Regards,
David


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Read PDF, change text, store?

2010-01-14 Thread David Balažic
Leonard Rosenthol  adobe.com> writes:
 
> They are just placeholders - they "go away" when you fill them and just leave
the text.
> 
> All commercial PDF editors (Acrobat, etc.) support creating them.

Great, I tried it and works. Thanks!

Just one more "nitpick":
After the user opens the resulting PDF file in the reader (like Foxit Reader),
he can edit the form content. Is there a way to mark it read-only or some other
way to prevent changes?

Regards,
David


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Display only setting for images

2010-01-14 Thread Iliadis Yannis
What you need is optional content groups
See examples at the link
http://1t3xt.info/tutorials/keywords/index.php?page=keyword&id=23

2010/1/14 Sean Steiger-McRae 

> I'm interested in having a fullpage background image/watermark in my PDFs
> that displays on-screen, but does not print (or vice versa). I know this
> option is available in current versions of Acrobat (I think from Acrobat
> 7.0
> and on) but I haven't been able to find an example of how to do it. Is this
> possible using iText?
>
> Sean Steiger-McRae
>
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/