[iText-questions] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread Shireesh Anjal
Hi,

With reference to the patch mentioned at URL
https://sourceforge.net/tracker/index.php?func=detailaid=2739845group_id=15255atid=315255

The patch status is Closed and status is Accepted. So I assume this
patch for supporting complex indic scripts is now available in iText. Could
you please let us know the version of iText in which this patch was
introduced? Currently we are using iText 2.1.0 - which doesn't work with
indic scripts.

Thanks and Regards,
Shireesh
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Splitting a PDF on the basis of file size

2010-05-25 Thread Kumar, Purushotam
I was looking for an article to split the PDF on the basis of size of
the PDF but couldn't get one.
Appreciate your help


Thanks and Regards,
Puru
919-458-1502

Disclaimer: Any comments or statements made in this email are not
necessarily those of Fidelity Investments., or any of the Fidelity
Investments group companies. The information transmitted is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. If you have received this in
error, please contact the sender and delete the material from any
computer. All e-mails sent from or to and/or on behalf of Fidelity
Investments, may be subject to our monitoring procedures.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread 1T3XT info
Shireesh Anjal wrote:
 Hi,
 
 With reference to the patch mentioned at URL 
 https://sourceforge.net/tracker/index.php?func=detailaid=2739845group_id=15255atid=315255
  
 https://sourceforge.net/tracker/index.php?func=detailaid=2739845group_id=15255atid=315255
 
 The patch status is Closed and status is Accepted. So I assume this 
 patch for supporting complex indic scripts is now available in iText.

No it isn't. The patch turned out to have several problems, so it never 
made an actual release.

 Could you please let us know the version of iText in which this patch 
 was introduced? Currently we are using iText 2.1.0 - which doesn't work 
 with indic scripts.

We are Western developers. We don't know anything about Hindi. Please 
send us a patch with support for Hindic languages that works.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Splitting a PDF on the basis of file size

2010-05-25 Thread 1T3XT info
Kumar, Purushotam wrote:
 I was looking for an article to split the PDF on the basis of size of
 the PDF but couldn't get one.

How would that make sense?

Suppose that you have a PDF with 10 pages with size 101 KB.
Now if you split that PDF into 10 separate pages, what do you expect?

You could end up with 10 PDFs each with a size of about 11 KB.
11 KB x 10  the original 101 KB, but that's normal.

However, you can also end up with 10 PDFs each with a size of 100 KB.
For instance: if every page in the original PDF contains an image of 
about 99 KB, that image will have to be present in the 10 separate PDFs. 
So the 101 KB PDF will result in a total of 1000 KB if you split it.

Please do some more reading about PDF first, then come back once you 
really know what you are trying to achieve.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread 1T3XT info
Shireesh Anjal wrote:
 Can you please let us know what kind of issues were those?

The font metrics and positioning were wrong.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread Shireesh Anjal
Hi,

Thanks a lot for the quick response.

Can you please let us know what kind of issues were those?

Thanks and Regards,
Shireesh


On Tue, May 25, 2010 at 12:07 PM, 1T3XT info i...@1t3xt.info wrote:

 Shireesh Anjal wrote:

 Hi,

 With reference to the patch mentioned at URL
 https://sourceforge.net/tracker/index.php?func=detailaid=2739845group_id=15255atid=315255
 https://sourceforge.net/tracker/index.php?func=detailaid=2739845group_id=15255atid=315255
 


 The patch status is Closed and status is Accepted. So I assume this
 patch for supporting complex indic scripts is now available in iText.


 No it isn't. The patch turned out to have several problems, so it never
 made an actual release.


  Could you please let us know the version of iText in which this patch was
 introduced? Currently we are using iText 2.1.0 - which doesn't work with
 indic scripts.


 We are Western developers. We don't know anything about Hindi. Please send
 us a patch with support for Hindic languages that works.
 --
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread Shireesh Anjal
Can we get some more information about the problem? Like how to test and
simulate it?

We would like to see if we can work on it and come up with an acceptable
patch. Believe me, this patch will have great impact in the Indian market. A
solution to this problem should result in a substantial increase the usage
of iText (and other softwares that use iText e.g. JasperReports) in the
Indian sub-continent.

We have tried out the below mentioned patch and it appeared to serve our
purpose. However we will really appreciate if you can provide the exact
details of the metrics/positioning problems so that we can try to resolve
those.

Thanks and Regards,
Shireesh


On Tue, May 25, 2010 at 12:42 PM, 1T3XT info i...@1t3xt.info wrote:

 Shireesh Anjal wrote:

 Can you please let us know what kind of issues were those?


 The font metrics and positioning were wrong.

 --
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread RKVS Raman
I suggest you have a look at Indic-Jasper http://code.google.com/p/indic-jasper/


Best Regards
-Raman

---
RKVS Raman
http://sites.google.com/site/rkvsraman




On Tue, May 25, 2010 at 1:11 PM, Shireesh Anjal anjalshire...@gmail.com wrote:
 Can we get some more information about the problem? Like how to test and
 simulate it?

 We would like to see if we can work on it and come up with an acceptable
 patch. Believe me, this patch will have great impact in the Indian market. A
 solution to this problem should result in a substantial increase the usage
 of iText (and other softwares that use iText e.g. JasperReports) in the
 Indian sub-continent.

 We have tried out the below mentioned patch and it appeared to serve our
 purpose. However we will really appreciate if you can provide the exact
 details of the metrics/positioning problems so that we can try to resolve
 those.

 Thanks and Regards,
 Shireesh


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread Shireesh Anjal
Hi Raman,

We have looked at that as well, and we appreciate the interesting approach
you have taken there. However I'm sure there is no denying that a
fix/enhancement in iText would be the most elegant and performant solution.

That is why we are keen on using the iText patch. If it doesn't work out, we
will most probably fall back on your solution :)

Thanks and Regards,
Shireesh

On Tue, May 25, 2010 at 1:22 PM, RKVS Raman rkvsra...@gmail.com wrote:

 I suggest you have a look at Indic-Jasper
 http://code.google.com/p/indic-jasper/


 Best Regards
 -Raman

 ---
 RKVS Raman
 http://sites.google.com/site/rkvsraman
 



 On Tue, May 25, 2010 at 1:11 PM, Shireesh Anjal anjalshire...@gmail.com
 wrote:
  Can we get some more information about the problem? Like how to test and
  simulate it?
 
  We would like to see if we can work on it and come up with an acceptable
  patch. Believe me, this patch will have great impact in the Indian
 market. A
  solution to this problem should result in a substantial increase the
 usage
  of iText (and other softwares that use iText e.g. JasperReports) in the
  Indian sub-continent.
 
  We have tried out the below mentioned patch and it appeared to serve our
  purpose. However we will really appreciate if you can provide the exact
  details of the metrics/positioning problems so that we can try to resolve
  those.
 
  Thanks and Regards,
  Shireesh
 

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Splitting a PDF on the basis of file size

2010-05-25 Thread Klas Lindbäck
There are several approaches to this. It is difficult to get a precise 
cut-off point, but I assume
that an approximate cutoff size is sufficient. I give you three possible 
ways below.

I am assuming that the pdf consists of records. Each record consists of 
information
that need to be kept in the same pdf.

Approach one (assumes homogenous record size):
Cut after N records. Assumes that all records adds a similar size to the 
pdf.
Use trial and error to find a suitable number of records.

Approach two (works with heterogenous records):
Cut after N pages. As long as the pdf is N pages, add another record.
Use trial and error to find a suitable number of pages.

Approach three:
Cut after N bytes. Obtain the file handle of the Document and check the 
current size.
If the size is N, add another record. Note that you need to flush the 
document
before measuring. Also note that some information won't be written until 
you close
the pdf, so expect the pdf to become a little larger when you close it.

I'm no expert on pdf syntax or the inner workings of iText, so if any 
approach is
a bad idea, please enlighten me.

/Klas



Kumar, Purushotam skrev 20:59:
 I was looking for an article to split the PDF on the basis of size of
 the PDF but couldn't get one.
 Appreciate your help


 Thanks and Regards,
 Puru
 919-458-1502



--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Regarding the patch complex script support - ID: 2739845

2010-05-25 Thread Sasibhushana Matcha
Hi Shireesh,
I have to disable print  option in pdf and I have to give options in pdf both 
portrait and landscape view.
Could u please help me.

Thanks  Regards
Sasibhushana.Matcha

From: Shireesh Anjal [mailto:anjalshire...@gmail.com]
Sent: Tuesday, May 25, 2010 1:34 PM
To: RKVS Raman
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Regarding the patch complex script support - 
ID: 2739845

Hi Raman,

We have looked at that as well, and we appreciate the interesting approach you 
have taken there. However I'm sure there is no denying that a fix/enhancement 
in iText would be the most elegant and performant solution.

That is why we are keen on using the iText patch. If it doesn't work out, we 
will most probably fall back on your solution :)

Thanks and Regards,
Shireesh
On Tue, May 25, 2010 at 1:22 PM, RKVS Raman 
rkvsra...@gmail.commailto:rkvsra...@gmail.com wrote:
I suggest you have a look at Indic-Jasper http://code.google.com/p/indic-jasper/


Best Regards
-Raman

---
RKVS Raman
http://sites.google.com/site/rkvsraman




On Tue, May 25, 2010 at 1:11 PM, Shireesh Anjal 
anjalshire...@gmail.commailto:anjalshire...@gmail.com wrote:
 Can we get some more information about the problem? Like how to test and
 simulate it?

 We would like to see if we can work on it and come up with an acceptable
 patch. Believe me, this patch will have great impact in the Indian market. A
 solution to this problem should result in a substantial increase the usage
 of iText (and other softwares that use iText e.g. JasperReports) in the
 Indian sub-continent.

 We have tried out the below mentioned patch and it appeared to serve our
 purpose. However we will really appreciate if you can provide the exact
 details of the metrics/positioning problems so that we can try to resolve
 those.

 Thanks and Regards,
 Shireesh



__


This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

__
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] No RTF Support?

2010-05-25 Thread Jack
Hello,

I wrote a question about handling page events based on using the iText
2.1.7 API.

Someone wrote back that I wouldn't get any support on RTF on this list.

However, isn't the API the same for the version 2.1.7 except for a few
minor differences?

Here's my question again. I'd appreciate some ideas.

If I can't get RTF help using iText on this list, where can I get it? :(

Bruno?

Thanks!

/I'm using iText in the standard programming model using the API, version
2.1.7 (for example, Paragraph para = new Paragraph (...)).

I've run into a problem, however, since I now need to have headers print
out on the output (*RTF* file, in my case) the value of one of the
variables at the top of each page.

So, my question is whether I need to take the ArrayList of objects (my
data passed to my iText program) and create an intermediate XML file
that I'd parse with iText SAX capabilities or is there a simpler way?

In other words, can I control what's actually printed at the top of each
page (and know when the top of each page is) using just the iText API?

I sincerely look forward to any suggestions.

Thanks very much!!!

M/
  


-- 

Jack -- Near Cameron Mills Road

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] No RTF Support?

2010-05-25 Thread Bruno Lowagie
Jack wrote:
 Someone wrote back that I wouldn't get any support on RTF on this list.

That's correct.

 However, isn't the API the same for the version 2.1.7 except for a few 
 minor differences?

You won't get any support for version 2.1.7 on this free mailing list 
either. Only the most recent version of iText is supported here.

 If I can't get RTF help using iText on this list, where can I get it? :(

You're using iText under the MPL/LGPL. That means that you'll have to 
help yourself, or search for paid support. The people who have written 
the RTF package no longer had the time to maintain the package (that's 
why it has been removed), so I fear that they won't have the time to 
offer paid support either.

 Bruno?

That's me. I removed the RTF package because I'm not specialized in RTF.
I only answer questions about PDF.
br,
Bruno

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread Brandon Kaminsky
Hello,

Is it possible to use itextpdf to create a PDF from the submission of a web 
form?

The content of the PDF would be the webform itself along with the data filled 
in by the user. It seems that itext would be able to do this but after 
searching the mailing list for hours I cannot find anyone else who requested 
this specific use. Please help.

Thanks,
Brandon



Please Note: Due to Florida's very broad public records law, most written 
communications to or from College employees regarding College business are 
public records, available to the public and media upon request. Therefore, this 
email communication may be subject to public disclosure.


Please consider the environment before printing this email.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread Brandon Kaminsky
Hello,

Is it possible to use itextpdf to create a PDF from the submission of a web 
form?

The content of the PDF would be the webform itself along with the data filled 
in by the user. It seems that itext would be able to do this but after 
searching the mailing list for hours I cannot find anyone else who requested 
this specific use. Please help.

Thanks,
Brandon



Please Note: Due to Florida's very broad public records law, most written 
communications to or from College employees regarding College business are 
public records, available to the public and media upon request. Therefore, this 
email communication may be subject to public disclosure.


Please consider the environment before printing this email.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] iText-questions Digest, Vol 48, Issue 80

2010-05-25 Thread Jack
Bruno,

Have you noticed that there are no RTF files at this sourceforge site?

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

(At least I don't see any when I click All Files)

???

--

On a slightly different question.Is it the general consensus that
RTF is dead or not worth messing with for whatever reason? I've had lots
of challenges with it.

Thanks.

- M

On 5/25/10 11:28 AM May 25, 2010,
itext-questions-requ...@lists.sourceforge.net wrote:
 Send iText-questions mailing list submissions to
   itext-questions@lists.sourceforge.net

 To subscribe or unsubscribe via the World Wide Web, visit
   https://lists.sourceforge.net/lists/listinfo/itext-questions
 or, via email, send a message with subject or body 'help' to
   itext-questions-requ...@lists.sourceforge.net

 You can reach the person managing the list at
   itext-questions-ow...@lists.sourceforge.net

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of iText-questions digest...


 Today's Topics:

1. No RTF Support? (Jack)
2. Re: No RTF Support? (Bruno Lowagie)
3. Create a PDF from submission of a web form? (Brandon Kaminsky)
4. Create a PDF from submission of a web form? (Brandon Kaminsky)


 --

 Message: 1
 Date: Tue, 25 May 2010 05:57:47 -0400
 From: Jack m...@amcgrath.org
 Subject: [iText-questions] No RTF Support?
 To: itext-questions@lists.sourceforge.net
 Message-ID: 4bfb9f1b.70...@amcgrath.org
 Content-Type: text/plain; charset=iso-8859-1

 Hello,

 I wrote a question about handling page events based on using the iText
 2.1.7 API.

 Someone wrote back that I wouldn't get any support on RTF on this list.

 However, isn't the API the same for the version 2.1.7 except for a few
 minor differences?

 Here's my question again. I'd appreciate some ideas.

 If I can't get RTF help using iText on this list, where can I get it? :(

 Bruno?

 Thanks!

 /I'm using iText in the standard programming model using the API, version
 2.1.7 (for example, Paragraph para = new Paragraph (...)).

 I've run into a problem, however, since I now need to have headers print
 out on the output (*RTF* file, in my case) the value of one of the
 variables at the top of each page.

 So, my question is whether I need to take the ArrayList of objects (my
 data passed to my iText program) and create an intermediate XML file
 that I'd parse with iText SAX capabilities or is there a simpler way?

 In other words, can I control what's actually printed at the top of each
 page (and know when the top of each page is) using just the iText API?

 I sincerely look forward to any suggestions.

 Thanks very much!!!

 M/
   


   

-- 

Jack -- Near Cameron Mills Road

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread 1T3XT BVBA

On 05/25/2010 05:21 PM, Brandon Kaminsky wrote:


Hello,

Is it possible to use itextpdf to create a PDF from the submission of 
a web form?



Of course: http://itextpdf.com:8180/book/


after searching the mailing list for hours


Ouch, I hope those hours weren't too expensive.
Buying the book could have saved you (and still can save you) a lot of time,
because the above link is part of the book examples.
See http://itextpdf.com/book/
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] iText-questions Digest, Vol 48, Issue 80

2010-05-25 Thread Bruno Lowagie

On 05/25/2010 05:34 PM, Jack wrote:

Bruno,

Have you noticed that there are no RTF files at this sourceforge site?

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

(At least I don't see any when I click All Files)

???
That's correct. The source code is only available through the SVN 
repository.
There's nobody to support that project, so we don't encourage people to 
use it.

Those who do need it, need to download the code and create their own jar.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] How to combine pdfs with form fields?

2010-05-25 Thread Qian
Hi, 
I have several PDFs with form fields already built in them, according to the 
conditions I need combine some of them or all of together to make a report 
set, I successfully merged pdf files together, but the result PDF file does 
not have any fields merged?

How do I do that? Please help, I thought it is a very common senario, but I 
can't find any example or suggestion online.

Qian


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] How to combine pdfs with form fields?

2010-05-25 Thread 1T3XT BVBA
On 05/25/2010 06:27 PM, Qian wrote:
 Hi,
 I have several PDFs with form fields already built in them, according to the
 conditions I need combine some of them or all of together to make a report
 set, I successfully merged pdf files together, but the result PDF file does
 not have any fields merged?

 How do I do that? Please help, I thought it is a very common senario, but I
 can't find any example or suggestion online.

It is a very common request, and if you didn't find any documentation,
you may have overlooked the book: http://itextpdf.com/book

Your question can't be answered if you don't give us any more information.
Are you talking about AcroForm or XFA technology?
Are you talking about flattened forms or are the form still interactive?
As long as you don't specify, we can't give you a useful answer.
If you can't specify, then you should start reading the book ;-)

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] iText-questions Digest, Vol 48, Issue 80

2010-05-25 Thread Daniel Essin

Jack,
I don't want to disrupt the general flow of the iText discussion but if 
you are working in .net there are several other strategies for working 
with RTF, depending on what you actually are trying to do. If this 
applies and you email a description of your objective, I might be able 
to suggest something. (I have never looked at the iText RTF package).


Dan

On 5/25/2010 8:34 AM, Jack wrote:

Bruno,

Have you noticed that there are no RTF files at this sourceforge site?

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

(At least I don't see any when I click All Files)

???

--

On a slightly different question.Is it the general consensus that 
RTF is dead or not worth messing with for whatever reason? I've had 
lots of challenges with it.


Thanks.

- M

On 5/25/10 11:28 AM May 25, 2010, 
itext-questions-requ...@lists.sourceforge.net wrote:

Send iText-questions mailing list submissions to
itext-questions@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
itext-questions-requ...@lists.sourceforge.net

You can reach the person managing the list at
itext-questions-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than Re: Contents of iText-questions digest...


Today's Topics:

1. No RTF Support? (Jack)
2. Re: No RTF Support? (Bruno Lowagie)
3. Create a PDF from submission of a web form? (Brandon Kaminsky)
4. Create a PDF from submission of a web form? (Brandon Kaminsky)


--

Message: 1
Date: Tue, 25 May 2010 05:57:47 -0400
From: Jackm...@amcgrath.org
Subject: [iText-questions] No RTF Support?
To:itext-questions@lists.sourceforge.net
Message-ID:4bfb9f1b.70...@amcgrath.org
Content-Type: text/plain; charset=iso-8859-1

Hello,

I wrote a question about handling page events based on using the iText
2.1.7 API.

Someone wrote back that I wouldn't get any support on RTF on this list.

However, isn't the API the same for the version 2.1.7 except for a few
minor differences?

Here's my question again. I'd appreciate some ideas.

If I can't get RTF help using iText on this list, where can I get it? :(

Bruno?

Thanks!

 /I'm using iText in the standard programming model using the API, version
 2.1.7 (for example, Paragraph para = new Paragraph (...)).

 I've run into a problem, however, since I now need to have headers print
 out on the output (*RTF* file, in my case) the value of one of the
 variables at the top of each page.

 So, my question is whether I need to take the ArrayList of objects (my
 data passed to my iText program) and create an intermediate XML file
 that I'd parse with iText SAX capabilities or is there a simpler way?

 In other words, can I control what's actually printed at the top of each
 page (and know when the top of each page is) using just the iText API?

 I sincerely look forward to any suggestions.

 Thanks very much!!!

 M/



   


--

Jack -- Near Cameron Mills Road
   



--

   



___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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 mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread Brandon Kaminsky
Thanks - fortunately didn't spend too much time and in the process did learn a 
few things about itext.

I will definitely look to purchase the book but can you tell me if the pdf 
creation from web-based forms can also include full-on formatting with images, 
text, etc. The form we want to convert to pdf on the fly is somewhat involved 
and precise - and we would want to maintain that formatting along w/ the 
user-input data as precisely as possible (but in pdf form, of course). Please 
advise.

Thank you again,
Brandon


From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Tuesday, May 25, 2010 11:39 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Create a PDF from submission of a web form?

On 05/25/2010 05:21 PM, Brandon Kaminsky wrote:
Hello,

Is it possible to use itextpdf to create a PDF from the submission of a web 
form?
Of course: http://itextpdf.com:8180/book/

after searching the mailing list for hours
Ouch, I hope those hours weren't too expensive.
Buying the book could have saved you (and still can save you) a lot of time,
because the above link is part of the book examples.
See http://itextpdf.com/book/


Please Note: Due to Florida's very broad public records law, most written 
communications to or from College employees regarding College business are 
public records, available to the public and media upon request. Therefore, this 
email communication may be subject to public disclosure.


Please consider the environment before printing this email.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread 1T3XT BVBA

On 05/25/2010 08:49 PM, Brandon Kaminsky wrote:
can you tell me if the pdf creation from web-based forms can also 
include full-on formatting with images, text, etc.

I have no idea what you are talking about.
The form we want to convert to pdf on the fly is somewhat involved and 
precise --

It's HTML that is posted to a server.
How can that be involved and precise?
That doesn't make any sense.

If you need a precise form, create one with Open Office or Acrobat;
then use iText to fill it. Why would you convert to PDF if you want it 
to be precise.
Sounds like an idea of somebody who fortunately didn't spend much time 
on research.
and we would want to maintain that formatting along w/ the user-input 
data as precisely as possible (but in pdf form, of course). Please advise.
If you want a precise form, serve it as a PDF. let the end user fill in 
the PDF,
post it as FDF and store the FDFs (or fill out the form using the data 
in the FDF).


Now please don't ask us what FDF means.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] table in header and page number on footer

2010-05-25 Thread Michelle Zhang
Anybody knows how to do that?
I spent a lot of time on that but could not figure out...

I know how to create a table but do not know how to put it into the header.

Here is my code:

create pdf code:
_event e = new _event();
pw.PageEvent = e;
e.OnStartPage(pw, document);
e.OnEndPage(pw, document);
e.OnOpenDocument(pw, document);
e.OnCloseDocument(pw, document);


event:
public class _event : PdfPageEventHelper
{
//on start event will add logo.jpg on header. no problem.
public override void OnStartPage(PdfWriter writer, Document document)
{  iTextSharp.text.Image imghead =
iTextSharp.text.Image.GetInstance(C:/MyWorks/logo80.jpg);
imghead.SetAbsolutePosition(0, 0);
PdfContentByte cbhead = writer.DirectContent;
PdfTemplate tp = cbhead.CreateTemplate(600, 250);
tp.AddImage(imghead);
cbhead.AddTemplate(tp, 0, 715);
Phrase headPhraseImg = new Phrase(cbhead + ,
FontFactory.GetFont(FontFactory.TIMES_ROMAN, 7,
iTextSharp.text.Font.NORMAL));
Header header = new Header(test, test);
base.OnStartPage(writer, document);

//not sure how to add a table into the header.
}

//following code were taken from the itext in action book. But it does not
work. The footer won't show. do not know why.
string header;
PdfTemplate total;
public void setHeader(string header)
{
this.header = header;
}
public void OnOpenDocument(PdfWriter writer, Document document)
{
total = writer.DirectContent.CreateTemplate(300, 160);
base.OnOpenDocument(writer, document);
}
public void OnEndPage(PdfWriter writer, Document document)
{
PdfPTable table = new PdfPTable(3);

table.SetWidths(new int[] { 24, 24, 3 });
table.SetTotalWidth(new float[] { 50 });
table.LockedWidth = true;
table.DefaultCell.FixedHeight = 20;
table.DefaultCell.Border = Rectangle.BOTTOM_BORDER;
table.AddCell(header);
table.DefaultCell.HorizontalAlignment = Element.ALIGN_RIGHT;
table.AddCell(string.Format(Page %d of, writer.PageNumber));
PdfPCell cell = new
PdfPCell(iTextSharp.text.Image.GetInstance(total));
cell.Border = Rectangle.BOTTOM_BORDER;
table.AddCell(cell);
table.WriteSelectedRows(0, -1, 34, 700, writer.DirectContent);

base.OnEndPage(writer, document);


}
public void OnCloseDocument(PdfWriter writer, Document document)
{
ColumnText.ShowTextAligned(total, Element.ALIGN_LEFT,
new Phrase(writer.PageNumber.ToString()), 2, 2, 0);
base.OnCloseDocument(writer, document);
}
}
-- 
---
Michelle
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread wasegraves
We're impressed. Could we see that form?

I seriously doubt a web-based form could ever be as precise as a PDF form. 
After all, any element of a PDF can be positioned on the document far more 
accurately than any known browser can render it.

;; 
Bill Segraves





From: Brandon Kaminsky bkami...@broward.edu
To: Post all your questions about iText here 
itext-questions@lists.sourceforge.net
Sent: Tue, May 25, 2010 2:49:41 PM
Subject: Re: [iText-questions] Create a PDF from submission of a web form?



if the pdf creation from web-based forms can also include full-on formatting 
with images, text, etc. The form we want to convert to pdf on the fly is 
somewhat involved and precise – and we would want to maintain that formatting 
along w/ the user-input data as precisely as possible (but in pdf form, of 
course). --

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Adding empty signatures to a table

2010-05-25 Thread QuietRiot


I figured it out. No thanks to you guys ;)


Here is what I have in the recordset loop on my jsp page:

 PdfPCell cell; 
 PdfFormField nameField = PdfFormField.createSignature(writer);
 nameField.setWidget(new Rectangle(0, 0, 0, 0),
PdfAnnotation.HIGHLIGHT_INVERT);
 nameField.setFieldName(nameField + x);
 nameField.setFlags(PdfAnnotation.FLAGS_PRINT);
 cell = new PdfPCell();
 cell.setCellEvent(new FieldCell(nameField,80, writer));
 table1.addCell(cell);



Here is my bean:

package com.test.beans.FieldCell;

import com.lowagie.text.Rectangle;
import com.lowagie.text.pdf.PdfAnnotation;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfFormField;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPCellEvent;
import com.lowagie.text.pdf.PdfWriter;


public class FieldCell implements PdfPCellEvent {
PdfFormField formField;
PdfWriter writer;
int width;

public FieldCell(PdfFormField formField, int width, 
PdfWriter writer){
this.formField = formField;
this.width = width;
this.writer = writer;
}

public void cellLayout(PdfPCell cell, Rectangle rect, 
PdfContentByte[] canvas){
try{
formField.setWidget(
new Rectangle(rect.left(), 
rect.bottom(), 
rect.left()+width, 
rect.top()), 
PdfAnnotation
.HIGHLIGHT_NONE);

writer.addAnnotation(formField);
}catch(Exception e){
System.out.println(e);
}
}
}
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Adding-empty-signatures-to-a-table-tp2226824p2230613.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread Brandon Kaminsky
I didn't want to bore the thread with our intended solution but if it will help 
set the context that you need to be able to answer to the question then here 
you are:

1.)We are serving a web form to students who may or may not have Adobe Acrobat 
- hence the need for a web-based form.
2.)We need a  complete snapshot of the form along with the student answers 
stored in our imaging system for government-required record keeping.
3.)The form has graphics, logos, etc and is formatted in a fairly precise 
manner.
4.)Our imaging system requires files to be in PDF or TIFF format.

Based on your response, I'm guessing that we'd capture the data from the form 
submission and use it to populate a pre-built PDF using itext? Is that how it 
would function? Thank you.


From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Tuesday, May 25, 2010 3:16 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Create a PDF from submission of a web form?

On 05/25/2010 08:49 PM, Brandon Kaminsky wrote:
can you tell me if the pdf creation from web-based forms can also include 
full-on formatting with images, text, etc.
I have no idea what you are talking about.

The form we want to convert to pdf on the fly is somewhat involved and precise -
It's HTML that is posted to a server.
How can that be involved and precise?
That doesn't make any sense.

If you need a precise form, create one with Open Office or Acrobat;
then use iText to fill it. Why would you convert to PDF if you want it to be 
precise.
Sounds like an idea of somebody who fortunately didn't spend much time on 
research.

and we would want to maintain that formatting along w/ the user-input data as 
precisely as possible (but in pdf form, of course). Please advise.
If you want a precise form, serve it as a PDF. let the end user fill in the PDF,
post it as FDF and store the FDFs (or fill out the form using the data in the 
FDF).

Now please don't ask us what FDF means.


Please Note: Due to Florida's very broad public records law, most written 
communications to or from College employees regarding College business are 
public records, available to the public and media upon request. Therefore, this 
email communication may be subject to public disclosure.


Please consider the environment before printing this email.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image Speed

2010-05-25 Thread Jen Debroni

Although I looked through a few different threads, I couldn't find anything
that answered my exact problem (apologies if I missed something).

I am creating a PDF document that needs to support many images - upwards of
20 unique images. Generating the PDF takes ~1 second per image (my testing
determined images are the bottleneck), which is a problem as I need to
generate these PDFs dynamically, and this is just too long to wait :( ... 

Here is the code I am using for each image:

image = Image.getInstance(url);
image.setAbsolutePosition(left, top - depth);
image.scaleAbsolute(width, depth);
d.add(image);

About half of the time per image is consumed by image =
Image.getInstance(url); - unfortunately, I don't think there's an
alternative here, however if anyone has a faster way of doing this, that'd
be appreciated.

However, the other time consumption is due to actually adding the images to
the document - my question is if there's a way to speed up this step.

Of course, if this is the best performance I can expect from iText, that
would be great to know too, so that I can start looking into other PDF
libraries.

Thanks!
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Image-Speed-tp2230840p2230840.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Blank PDF after it is transfered through SMTP

2010-05-25 Thread Jiangang Song

Thank you for pointing out shave bytes.

In fact, this time it is inflated bytes. Comparing the pdf file generated 
directly and the one transferred through SMTP using content-transfer-encoding: 
quoted-printable, all 0A is inflated to 0D 0A and all 0D is also inflated to 
0D 0A. There is no other difference. Just this minor inflation blows up acrobat 
reader and it shows up as blank pdf. (There is no such inflation if base64 is 
used as content-transfer-encoding.)

So the pdf generated by iText contains either 0A or 0D but not 0D 0A together. 
Is this by design? Or is it configurable?

P.S.: all test is on Windows platform. Attached page_numbers.pdf is generated 
directly and test.pdf is received through email as described above using 
quoted-printable encoding.


 Date: Mon, 24 May 2010 18:00:38 +0200
 From: i...@1t3xt.info
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Blank PDF after it is transfered through SMTP
 
 Jiangang Song wrote:
  Or is there anything wrong with my usage of Java mail?
 
 The blank page problem is (as documented in the book) caused by the 
 fact that some applications (such as Java mail?) shave bytes.
 
 PDF is a binary file format. You need to transfer it as a binary file. 
 If you open up the PDF with the shaved bytes in a text editor, you'll 
 see that there are lots of question marks. Those are bytes that have 
 lost a bit due to the way you've transferred them.
 
 You need to make sure that you transfer the file as a binary file.
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.itextpdf.com/book/
 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/
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

page_numbers.pdf
Description: Adobe PDF document


test.pdf
Description: Adobe PDF document
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image Speed

2010-05-25 Thread Mike Marchywka



 Although I looked through a few different threads, I couldn't find anything
 that answered my exact problem (apologies if I missed something).

 I am creating a PDF document that needs to support many images - upwards of
 20 unique images. Generating the PDF takes ~1 second per image (my testing
 determined images are the bottleneck), which is a problem as I need to
 generate these PDFs dynamically, and this is just too long to wait :( ...

 Here is the code I am using for each image:

 image = Image.getInstance(url);
 image.setAbsolutePosition(left, top - depth);
 image.scaleAbsolute(width, depth);
 d.add(image);

 About half of the time per image is consumed by image =
 Image.getInstance(url); - unfortunately, I don't think there's an
 alternative here, however if anyone has a faster way of doing this, that'd
 be appreciated.

Does this point to some other machine? Or a local file on disk somewhere?
You can of course cache these or maybe compress but in any case this is not a 
PDF problem if
limited by IO.



 However, the other time consumption is due to actually adding the images to
 the document - my question is if there's a way to speed up this step.

 Of course, if this is the best performance I can expect from iText, that
 would be great to know too, so that I can start looking into other PDF
 libraries.


Presumably you'd like to get some indication that the
other libraries could be faster by determing that there is
a better code or algorithm alternative to that used by itext
( native code may be faster too). It could just be that the task
takes a lot of work. Often, however, you find
things like memory usage rather than instruction count
become the limiting issues- if you have lots of big images, VM will
still thrash them around unless you happen to get lucky.
In this case you could probably get tremenduous speed ups
by only keeping what you need in memory and writing completed stuff
out as it is ready etc.
The answer of course is that you should dig down deeper and
see what the issue is more precisely. An itext person with
knowledge of the code may have some suspects but you
also could have some quirk specific to your system
that causes bigger problems. 








  
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Create a PDF from submission of a web form?

2010-05-25 Thread Cameron Laird
On Tue, May 25, 2010 at 3:00 PM, Brandon Kaminsky bkami...@broward.eduwrote:

  I didn’t want to bore the thread with our intended solution but if it
 will help set the context that you need to be able to answer to the question
 then here you are:



 1.)We are serving a web form to students who may or may not have Adobe
 Acrobat - hence the need for a web-based form.

 2.)We need a  complete “snapshot” of the form along with the student
 answers stored in our imaging system for government-required record keeping.

 3.)The form has graphics, logos, etc and is formatted in a fairly precise
 manner.

 4.)Our imaging system requires files to be in PDF or TIFF format.



 Based on your response, I’m guessing that we’d capture the data from the
 form submission and use it to populate a pre-built PDF using itext? Is that
 how it would function? Thank you.

 ...

*I* certainly manage Web forms that capture data for government operations,
and render the results to PDF for statutory requirements of one form or
another.  Sometimes, but not always, I rely on iText.  In that sense, then,
I suppose, yes, I constitute an existence proof that it *could* function
that way for you.  I don't understand your precise requirements, though, and
certainly am not in a position to judge whether iText is the *best*
solution.

I'll tangentially speculate, though, based on my own experience, that there
might be *no* solution:  that is, this talk about precise graphics and
exact layouts makes me wonder whether, once again, the agencies involved
have specified an impossible target.  I know there are plenty of times when
I've had to figure out what makes sense, then go back to the decision-makers
to ask them to change their specs to match reality.

Good luck.
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Blank PDF after it is transfered through SMTP

2010-05-25 Thread Mike Marchywka










 From: js...@hotmail.com
 To: itext-questions@lists.sourceforge.net
 Date: Tue, 25 May 2010 18:37:45 -0400
 Subject: Re: [iText-questions] Blank PDF after it is transfered through SMTP








 Thank you for pointing out shave bytes.

 In fact, this time it is inflated bytes. Comparing the pdf file generated 
 directly and the one transferred through SMTP using 
 content-transfer-encoding: quoted-printable, all 0A is inflated to 0D 0A 
 and all 0D is also inflated to 0D 0A. There is no other difference. Just this 
 minor inflation blows up acrobat reader and it shows up as blank pdf. (There 
 is no such inflation if base64 is used as content-transfer-encoding.)


What exactly are these characters? Why might this make sense with some data 
types?


 So the pdf generated by iText contains either 0A or 0D but not 0D 0A 
 together. Is this by design? Or is it configurable?

I guess if it did this consistently, you could use dos2unix or sed to fix the 
file.


 P.S.: all test is on Windows platform. Attached page_numbers.pdf is generated 
 directly and test.pdf is received through email as described above using 
 quoted-printable encoding.

See this for example, learn to use ietf for these types of issues or other 
standard
groups, 
http://tools.ietf.org/rfc/rfc2045.txt

6.6.  Canonical Encoding Model

   There was some confusion, in the previous versions of this RFC,
   regarding the model for when email data was to be converted to
   canonical form and encoded, and in particular how this process would
   affect the treatment of CRLFs, given that the representation of
   newlines varies greatly from system to system, and the relationship
   between content-transfer-encodings and character sets.  A canonical
   model for encoding is presented in RFC 2049 for this reason.

6.7.  Quoted-Printable Content-Transfer-Encoding

   The Quoted-Printable encoding is intended to represent data that
   largely consists of octets that correspond to printable characters in
   the US-ASCII character set.  It encodes the data in such a way that
   the resulting octets are unlikely to be modified by mail transport.
   If the data being encoded are mostly US-ASCII text, the encoded form
   of the data remains largely recognizable by humans.  A body which is
   entirely US-ASCII may also be encoded in Quoted-Printable to ensure
   the integrity of the data should the message pass through a
   character-translating, and/or line-wrapping gateway.



 Date: Mon, 24 May 2010 18:00:38 +0200
 From: i...@1t3xt.info
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Blank PDF after it is transfered through SMTP

 Jiangang Song wrote:
 Or is there anything wrong with my usage of Java mail?

 The blank page problem is (as documented in the book) caused by the
 fact that some applications (such as Java mail?) shave bytes.

 PDF is a binary file format. You need to transfer it as a binary file.
 If you open up the PDF with the shaved bytes in a text editor, you'll
 see that there are lots of question marks. Those are bytes that have
 lost a bit due to the way you've transferred them.

 You need to make sure that you transfer the file as a binary file.
 --
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info

 --

 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.itextpdf.com/book/
 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/

 
 The New Busy is not the old busy. Search, chat and e-mail from your inbox. 
 Get started.
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Does iText easily support XSL-Fo, XML and XSL?

2010-05-25 Thread Deshmukh, Swapnil
Thanks for the answers!



Referring to answer for question 3

3. In both the cases explained above, do I have to write my own class
   to parse the xml document (internally used by ITextSharp)?
I have several projects where I transform XML to HTML using XSLT, once
that's done I use HTMLWorker to create the PDF.

Is this the only way to create PDF out of XML input. i.e XML - HTML - PDF.
Is there any alternative approach?

Regards,
Swapnil Deshmukh
Systems Analyst
Global Services
Fiserv
Office:503-746-0695
www.fiserv.com

From: 1T3XT info [i...@1t3xt.info]
Sent: Monday, May 24, 2010 10:52 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Does iText easily support XSL-Fo, XML and XSL?

Deshmukh, Swapnil wrote:
1. Has iText implemented it's own XSL-FO parser?

No.

2. How easy it is to implement these scenarios in iTextSharp ?

Some commercial products use iText under the hood of their XSL:FO
parser, you should ask them, not us.

3. In both the cases explained above, do I have to write my own class
   to parse the xml document (internally used by ITextSharp)?

I have several projects where I transform XML to HTML using XSLT, once
that's done I use HTMLWorker to create the PDF.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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 mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image Speed

2010-05-25 Thread Jen Debroni

Does this point to some other machine? Or a local file on disk somewhere? 

This URL points to a photo hosted by our photo server - this is the only way
to access these images unfortunately. However, do you think it would help to
compress the image somehow before calling image.getInstance()? Caching does
no good as there will very rarely be repetition in the images used :( ...


-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Image-Speed-tp2230840p2230889.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image Speed

2010-05-25 Thread Mike Marchywka







 Date: Tue, 25 May 2010 16:39:42 -0700
 From: jdebr...@gmail.com
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Image Speed


 Does this point to some other machine? Or a local file on disk somewhere? 

 This URL points to a photo hosted by our photo server - this is the only way
 to access these images unfortunately. However, do you think it would help to
 compress the image somehow before calling image.getInstance()? Caching does
 no good as there will very rarely be repetition in the images used :( ...


unlikely to be due to transfer time, could even be disk IO on server but
only a non-itext related suspect.


  
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] How to set the pdf's name dynamically when using servlet

2010-05-25 Thread Zhu, Yunpu
I wanna decide pdf's name dynamically when I generate the pdf file using 
a servlet and Jsp. The pdf is shown in browser. When I click save as, 
the pop-up name is different during the different scenario.

Thanks



--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/