Re: [iText-questions] iText in maven2 repositories

2006-12-18 Thread Paulo Soares
Shouldn't you ask the maven guys?

Paulo

- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 19, 2006 1:13 AM
Subject: [iText-questions] iText in maven2 repositories


> It looks like the highest iText jar file version in the maven2
> repositories is 1.4 but the latest version on the site is 1.4.7. Is
> anybody planning on updating this?
>
> Many thanks,
>
> -j
>
> ---
> Justin Fung
> [EMAIL PROTECTED]
> Consultant, Business Systems
> IT Banking Systems, e-Business
> HSBC Bank Canada
> http://www.hsbc.ca
> p: (604) 643-6605
> f: (604) 643-6727
>
> ***
> This email may contain confidential information, and is intended only for 
> the named recipient and may be privileged. Distribution or copying of this 
> email by anyone other than the named recipient is prohibited. If you are 
> not the named recipient, please notify us immediately and permanently 
> destroy this email and all copies of it. Internet email is not private, 
> secure, or reliable.  No member of the HSBC Group is liable for any errors 
> or omissions in the content or transmission of this email. Any opinions 
> contained in this email are solely those of the author and, unless clearly 
> indicated otherwise in writing, are not endorsed by any member of the HSBC 
> Group.
> ***
> Ce courriel peut renfermer des renseignements confidentiels et privilégiés 
> et s'adresse au destinataire désigné seulement.   La distribution ou la 
> copie de ce courriel par toute personne autre que le destinataire désigné 
> est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez nous 
> en aviser immédiatement et détruire de façon permanente ce courriel ainsi 
> que toute copie de celui-ci. La transmission de courriel par Internet ne 
> constitue pas un mode de transmission confidentiel, sécuritaire ou fiable. 
> Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des 
> omissions relatives au contenu ou à la transmission de ce courriel. 
> L'auteur de ce courriel est seul responsable des opinions émises dans ce 
> courriel, lesquelles, à moins  d'un avis contraire fourni par écrit, ne 
> sont pas endossées par aucun membre du Groupe HSBC.
> ***
>
> "SAVE PAPER - THINK BEFORE YOU PRINT!"
>
> "ÉCONOMISEZ LE PAPIER - PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!"
>
>





> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV





> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText in maven2 repositories

2006-12-18 Thread justin_fung
It looks like the highest iText jar file version in the maven2 
repositories is 1.4 but the latest version on the site is 1.4.7. Is 
anybody planning on updating this?

Many thanks,

-j

---
Justin Fung
[EMAIL PROTECTED]
Consultant, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727

***
This email may contain confidential information, and is intended only for the 
named recipient and may be privileged. Distribution or copying of this email by 
anyone other than the named recipient is prohibited. If you are not the named 
recipient, please notify us immediately and permanently destroy this email and 
all copies of it. Internet email is not private, secure, or reliable.  No 
member of the HSBC Group is liable for any errors or omissions in the content 
or transmission of this email. Any opinions contained in this email are solely 
those of the author and, unless clearly indicated otherwise in writing, are not 
endorsed by any member of the HSBC Group.
***
Ce courriel peut renfermer des renseignements confidentiels et privilégiés et 
s'adresse au destinataire désigné seulement.   La distribution ou la copie de 
ce courriel par toute personne autre que le destinataire désigné est interdite. 
 Si vous n'êtes pas le destinataire désigné, veuillez nous en aviser 
immédiatement et détruire de façon permanente ce courriel ainsi que toute copie 
de celui-ci. La transmission de courriel par Internet ne constitue pas un mode 
de transmission confidentiel, sécuritaire ou fiable. Aucun membre du Groupe 
HSBC ne sera responsable des erreurs ou des omissions relatives au contenu ou à 
la transmission de ce courriel.  L'auteur de ce courriel est seul responsable 
des opinions émises dans ce courriel, lesquelles, à moins  d'un avis contraire 
fourni par écrit, ne sont pas endossées par aucun membre du Groupe HSBC.
***

"SAVE PAPER - THINK BEFORE YOU PRINT!"

"ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!"

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Determining page number from indirect reference

2006-12-18 Thread mrflippy
Hello,

I am still working on copying internal link annotations into a copy of  
the original pdf. I have the annotations created. Now, I'm having  
trouble linking them to the correct pages. I can pull the link  
destination, but it comes back as an indirect reference to the page,  
and I'm not sure how to translate that into page number.

This is a sample of what I'm trying to do (C# code, sorry):

PdfAnnotation newAnnot = PdfAnnotation.CreateLink(stamper.Writer,  
link.Rect, PdfName.I, link.DestinationPageNumber + tocOffset,  
link.Destination);
stamper.AddAnnotation(newAnnot, link.AnnotationPageNumber + tocOffset);

I also tried adding an indirect reference to the link.Destination  
object (PdfDestination) but that behaved strangely. (Sent me to the  
wrong page) I assume this doesn't work because I'm inserting many PDF  
files into one larger file and this causes the references to not match  
between files.

I think this would work if I could get the page number (in the  
original file) that the link points to. Of course, if there's a better  
way of doing this, that would be great too :)

Thanks,
Andy


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText & big images

2006-12-18 Thread Paulo Soares
You can scale the image. In any case, big images are dropped if they don't 
fit.

Paulo

- Original Message - 
From: "igors.kuvaga" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 18, 2006 7:05 PM
Subject: [iText-questions] iText & big images


> Hello, All!
>
>
>
> I am using iText to generate some reports which contain both data both
> images.
>
> Images are in png format like in attached file.
>
> In the cases when the size of picture is small - smaller then maximally
> allowed by opened pdf document I created in iText (typically A4 with some
> headers and footers), it works. But if there is no space to place table 
> with
> cell where this image exists, then resulting pdf file starts to grow until
> there is some capacity (memory or disk space) and fails afterwards.
>
> I have not found in iText documentation the possibility to react on this
> event, when I try to put the picture and there is no space for it.
>
> Could You help in this problem.
>
>
>
> Thanks in advance.
>
> /igors
>
>
>
>
>
>
>
>
>
> - CONFIDENTIAL -
>
> The information contained in this message may be CONFIDENTIAL and is
> intended for the addressee only. Any unauthorised use, dissemination of 
> the
> information or copying of this message is prohibited. If you are not the
> addressee, please notify the sender immediately by return e-mail and 
> delete
> this message.
>
> Thank you.
>
> Igors Kuvaga
>
> mob. +7 95 00 23 99 99
>
>
>
>





> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV





> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText & big images

2006-12-18 Thread igors.kuvaga
Hello, All!

 

I am using iText to generate some reports which contain both data both
images.

Images are in png format like in attached file. 

In the cases when the size of picture is small - smaller then maximally
allowed by opened pdf document I created in iText (typically A4 with some
headers and footers), it works. But if there is no space to place table with
cell where this image exists, then resulting pdf file starts to grow until
there is some capacity (memory or disk space) and fails afterwards.

I have not found in iText documentation the possibility to react on this
event, when I try to put the picture and there is no space for it.

Could You help in this problem.

 

Thanks in advance.

/igors

 

 

 

 

 - CONFIDENTIAL -

The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.

Thank you.

Igors Kuvaga

mob. +7 95 00 23 99 99 

 



1717240_sm08_72b_02.lst_002.png
Description: PNG image
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText support

2006-12-18 Thread Bruno Lowagie
Duncan Groenewald wrote:
> Hi,  I can figure out how where the iText discussion or support forums 
> are so I am trying you directly.

I almost overlooked this mail.
It has [iText-questions] in the subject,
but it didn't show up in the mailing list archives.
Mails sent to the mailing list get priority.
Mails sent to me personally are easily discarded without reading.

> Firstly are there support forums ?

Please read: http://itext.ugent.be/info/contact.php

> and secondly, how do I add text to the last page only.  For example, the 
> totals for an invoice ?

Adding text to an existing PDF document?
Look for examples with PdfStamper.

> The only thing I can find is to use the onCloseDocument event but I 
> can't figure out how to write text to the last page from within this 
> function.  I need to use the direct functions to position the text in a 
> precise position.

onCloseDocument can be used when you create PDF documents from scratch.

Please clarify what you need.
I assume you need
PdfReader reader = new PdfReader("existing.pdf");
PdfStamper stamper = new PdfStamper(reader, new 
FileOutputStream("new.pdf"));
PdfContentByte cb = stamper.getOverContent(reader.getNumberOfPages());
// do stuff with cb
stamper.close();

I could have some methods wrong (I'm writing the code sample from 
memory), but if you Google for PdfReader, PdfStamper, PdfContentByte,... 
you'll find sufficient examples.
br,
Bruno

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Amazon delivered a present today

2006-12-18 Thread David Thielen
I haven't read it yet but a quick look at the iText book - WOW

 

 

 

David Thielen

www.windwardreports.com

303-499-2544 x1185

 

Cubicle Wars - http://www.windwardreports.com/film.htm

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Bug in PdfPCell

2006-12-18 Thread Eric Summkeller
Very good!
Thanks for your help.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] preparing new release

2006-12-18 Thread Bruno Lowagie (iText)
Hello all,
I'm preparing a new version of iText that will be release tomorrow. This 
will be the last release before we make some significant changes: 
removing BouncyCastle from iText; and use BouncyCastle from a separate 
jar. Reason: we need more BouncyCastle functionality to implement 
Certificate encryption.
This is the changelog of the release that will be made tomorrow:

# Changes made by Paulo

* AcroFields: MAXLEN was not being applied to the display value.
* Bugfix: AES encryption could fail with an incorrect length calculation.
* Bugfix: the key NeedAppearances in AcroForm must be deleted when signing.

# Changes made by Bruno

* Added AES support in class PdfEncryptor.
* Added support for PDF packages in PdfStamper (code contribution by 
Leonard Rosenthol)
* When using Graphics2D binary images will now be stored as G4 
compressed images (instead of RGB); patch provided by Robert Engels.
* Bugfix: on some occasions small invisible chunks with font Helvetica 
were inserted breaking PDF/X compliancy.
* Bugfix: when switching fonts, a space character was sometimes inserted 
at the start of a new line.
* Bugfix: I finally fixed the newPage() problem caused by class Table.
* Bugfix: a blank page problem caused by class PdfPTable (when using 
setExtendLastRow(true)) was fixed.
* Bugfix: the indentation of paragraphs was wrong when adding a 
PdfPTable to a Paragraph.
* Bugfix: the indentation of chapters/sections was wrong when adding a 
PdfPTable to a Chapter/Section.
* Bugfix: I solved a null problem in TreeViewPDF
* Replacement of the image icons in TreeViewPDF and translation of some 
German words to English.

The problem with TreeViewPDF reported by Iliad Yan, was caused by a 
NullPointerException; the new PDF package support for PdfStamper was 
sent to me by Leonard (and is already available in CVS).

If you think something is missing, now is the time to speak ;-)
br,
Bruno

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Swing and FontMapper problem

2006-12-18 Thread Peter B. West
I don't know the iText Pdfgraphics2D code, so I can't offer any
particular suggestions.  However, I am using Java2D to layout text which
is later rendered to PDF using, in part. iText resources.

I'm also using Java 1.5 and 1.6. Since 1.5, and even more in 1.6, Java2D
can be directed to do its text measurement directly from a TrueType or
Type1 font file. The key is to Font.createFont(..) using such a font
file, and to derive fonts in different sizes from this font. Don't ask
J2D to give you a font based on an AttributeMap which includes any of
the "primary" attributes like size, style and weight, because it will
then feel justified in giving you a synthesized font. There are a few
gotchas and provisos, but with this approach you can layout text to the
same dimensions that the PDF renderer sees.

I would like to have a look at this in iText, but it is a question of
finding the time; and, of course, it depends on having at least 1.5.

Peter

On Mon, 2006-12-18 at 12:00 +0100, NCA wrote:
> I use the last version of iText ( 1.4.6 ).
> The font used is "comic sans MS" and it's in the PDF (embedded)
> The printing dimension is the JLabel's preferredSize ...
> 
> Nicolas
> 
> - Original Message - 
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Post all your questions about iText here" 
> 
> Sent: Monday, December 18, 2006 11:44 AM
> Subject: Re: [iText-questions] Swing and FontMapper problem
> 
> 
> > If I remember well the size is calculated based on the awt size, no matter
> > the BaseFont used. It may be another problem related to the printing
> > dimensions you are giving that are smaller than printing to screen or you
> > are using a very older iText version.
> >
> > Paulo
> >
> > - Original Message - 
> > From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
> > To: "Post all your questions about iText here"
> > 
> > Sent: Monday, December 18, 2006 10:33 AM
> > Subject: Re: [iText-questions] Swing and FontMapper problem
> >
> >
> >> NCA wrote:
> >>
> >>> How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite
> >>> all the JComponents UI.getPreferredSize code )
> >>> Here is my code :
> >>
> >>>   if ( fontMapper == null )
> >>>  fontMapper = new DefaultFontMapper();
> >>
> >> Please open the document in Adobe Reader and have a look
> >> at the Fonts panel in the Document Properties window.
> >> Do you see the font you are expecting, or was Helvetica
> >> used instead? Maybe you need to write your own font mapper
> >> so that the correct font is used.
> >> Mapping Java fonts and actual fonts can be quite a burden.
> >> br,
> >> Bruno
> >>
> >> -
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> ___
> >> iText-questions mailing list
> >> iText-questions@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >> Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share 
> > your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> > 
> 
> 
>   
> 
>   
>   
> ___ 
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
> interface révolutionnaire.
> http://fr.mail.yahoo.com
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business

Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Leonard Rosenthol
You also need to be aware that Acrobat 6 and earlier have a 2G  
limitation on PDF file size anyway - so that if you really are able  
to merge the documents together, you can only view it with Acrobat 7  
and later.  In addition, no 3rd party PDF viewer is able to work with  
a >2G PDF.

Leonard

On Dec 18, 2006, at 3:31 AM, Davy Lee wrote:

>
> Dear Paulo,
> even for two 2G pdf file, do u have a better sosution to merge them,
> sometimes I don't need to modify the pages, sometime I do.
>
> btw, the 2G limitation is for the original pdf file or for the  
> finnal merged
> file?
> cheers.
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Swing and FontMapper problem

2006-12-18 Thread NCA
I use the last version of iText ( 1.4.6 ).
The font used is "comic sans MS" and it's in the PDF (embedded)
The printing dimension is the JLabel's preferredSize ...

Nicolas

- Original Message - 
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 

Sent: Monday, December 18, 2006 11:44 AM
Subject: Re: [iText-questions] Swing and FontMapper problem


> If I remember well the size is calculated based on the awt size, no matter
> the BaseFont used. It may be another problem related to the printing
> dimensions you are giving that are smaller than printing to screen or you
> are using a very older iText version.
>
> Paulo
>
> - Original Message - 
> From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
> To: "Post all your questions about iText here"
> 
> Sent: Monday, December 18, 2006 10:33 AM
> Subject: Re: [iText-questions] Swing and FontMapper problem
>
>
>> NCA wrote:
>>
>>> How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite
>>> all the JComponents UI.getPreferredSize code )
>>> Here is my code :
>>
>>>   if ( fontMapper == null )
>>>  fontMapper = new DefaultFontMapper();
>>
>> Please open the document in Adobe Reader and have a look
>> at the Fonts panel in the Document Properties window.
>> Do you see the font you are expecting, or was Helvetica
>> used instead? Maybe you need to write your own font mapper
>> so that the correct font is used.
>> Mapping Java fonts and actual fonts can be quite a burden.
>> br,
>> Bruno
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Paulo Soares
Two 1.6G files won't do. The error was that you ran out of virtual space and 
need a 64 bit machine. You may revert to the RandomAccessFile instead of a 
mapped file but I doubt that iText can perform reasonably with such big 
files.

Paulo
- Original Message - 
From: "Davy Lee" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 18, 2006 9:43 AM
Subject: Re: [iText-questions] How to merge two 3G size pdf fast


>
> When I tried to process two 1.6G pdf file, an error occured:
>
> java.io.IOException: Not enough storage is available to process this 
> command
>at sun.nio.ch.FileChannelImpl.map0(Native Method)
>at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:742)
>at
> com.lowagie.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile.java:103)
>at
> com.lowagie.text.pdf.MappedRandomAccessFile.(MappedRandomAccessFile.java:87)
>at
> com.lowagie.text.pdf.RandomAccessFileOrArray.(RandomAccessFileOrArray.java:121)
>at
> com.lowagie.text.pdf.RandomAccessFileOrArray.(RandomAccessFileOrArray.java:80)
>at com.lowagie.text.pdf.PRTokeniser.(PRTokeniser.java:108)
>at com.lowagie.text.pdf.PdfReader.(PdfReader.java:155)
>at com.lowagie.text.pdf.PdfReader.(PdfReader.java:145)
>at sticker.Main.main(Main.java:60)
>
>
> it means that the error occured at :
>   reader = new PdfReader(new RandomAccessFileOrArray(fileList[docNum]),
> null);
>
> however, in the book "ITEXT in action" said: using new
> RandomAccessFileOrArray(fileList[docNum])
> in the pdfreader constructor will partial read the original file, I'm
> confusing.
>
> if the error occurs in the pdfReader constructor, it will be still no 
> useful
> to rewrite the pdfcopy class or
> the pdfwriter class.
>
> cheers,
> Davy Lee
>
>
>
>
> Paulo Soares wrote:
>>
>> The total size of the file can't be 2G so it would be like two 1G files.
>> Doing this will always take a lot of time and a lot of memory unless the
>> number of pages is small. To merge such big files efficiently you'd have
>> to
>> create a customized PdfCopy.
>>
>> Paulo
>>
>> - Original Message - 
>> From: "Davy Lee" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, December 18, 2006 8:31 AM
>> Subject: Re: [iText-questions] How to merge two 3G size pdf fast
>>
>>
>>>
>>> Dear Paulo,
>>> even for two 2G pdf file, do u have a better sosution to merge them,
>>> sometimes I don't need to modify the pages, sometime I do.
>>> cheers.
>>>
>>> Davy lee
>>>
>>>
>>> Paulo Soares wrote:

 You'll certainly won't use iText to do this. iText has a 2G size
 limitation.

 Paulo

 - Original Message - 
 From: "Davy Lee" <[EMAIL PROTECTED]>
 To: 
 Sent: Monday, December 18, 2006 4:11 AM
 Subject: [iText-questions] How to merge two 3G size pdf fast


>
> I have two 3G size pdf files, we need to use ITEXT to merge them into
> one
> single new pdf document.
> However, to do this will waste too much time to finished it. It would
> cost
> us about half days to finish
> to merging process. Do u guys have any new solution to do it? cheers.
> My code is below:
>
> //pdf files array list.
>String [] fileList = {"sample1.pdf","sample2.pdf"};
>
>Document document;
>PdfCopy copy;
>PdfReader reader;
>
>try
>{   // step 1
>document = new Document();
>// step 2
> copy = new PdfCopy(document, new FileOutputStream(
>"sample_Combination.pdf"));
>// step 3
>document.open();
>for(int docNum=0; docNum{
>reader = new PdfReader(new
> RandomAccessFileOrArray(fileList[docNum]), null);
>int pages = reader.getNumberOfPages();
>// step 4
>for (int pageNum = 0; pageNum < pages; )
>{
>++pageNum;
>copy.addPage(copy.getImportedPage(reader, 
> pageNum));
> }//iterate page loop.
>}// iterate doc loop.
>
>// step 5
>document.close();
>
>
>
>}
>catch(IOException e)
>{
>e.printStackTrace();
> }
>catch (DocumentException e)
>{
>e.printStackTrace();
> }
>
> very big thanks in advance.
> -- 
> View this message in context:
> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to 
> share
>>

Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread robert engels
iText uses a memory mapped file. You may not enough enough contigiuos  
address space to map a file that large.

iText needs to be changed to support a simple RandomAccessFile and  
then it would work.

Doesn't matter anyway, since two 1.6 gig files would be larger than 2  
gig...


On Dec 18, 2006, at 3:43 AM, Davy Lee wrote:

>
> When I tried to process two 1.6G pdf file, an error occured:
>
> java.io.IOException: Not enough storage is available to process  
> this command
> at sun.nio.ch.FileChannelImpl.map0(Native Method)
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:742)
> at
> com.lowagie.text.pdf.MappedRandomAccessFile.init 
> (MappedRandomAccessFile.java:103)
> at
> com.lowagie.text.pdf.MappedRandomAccessFile. 
> (MappedRandomAccessFile.java:87)
> at
> com.lowagie.text.pdf.RandomAccessFileOrArray. 
> (RandomAccessFileOrArray.java:121)
> at
> com.lowagie.text.pdf.RandomAccessFileOrArray. 
> (RandomAccessFileOrArray.java:80)
> at com.lowagie.text.pdf.PRTokeniser.(PRTokeniser.java: 
> 108)
> at com.lowagie.text.pdf.PdfReader.(PdfReader.java:155)
> at com.lowagie.text.pdf.PdfReader.(PdfReader.java:145)
> at sticker.Main.main(Main.java:60)
>
>
> it means that the error occured at :
>reader = new PdfReader(new RandomAccessFileOrArray(fileList 
> [docNum]),
> null);
>
> however, in the book "ITEXT in action" said: using new
> RandomAccessFileOrArray(fileList[docNum])
> in the pdfreader constructor will partial read the original file, I'm
> confusing.
>
> if the error occurs in the pdfReader constructor, it will be still  
> no useful
> to rewrite the pdfcopy class or
> the pdfwriter class.
>
> cheers,
> Davy Lee
>
>
>
>
> Paulo Soares wrote:
>>
>> The total size of the file can't be 2G so it would be like two 1G  
>> files.
>> Doing this will always take a lot of time and a lot of memory  
>> unless the
>> number of pages is small. To merge such big files efficiently  
>> you'd have
>> to
>> create a customized PdfCopy.
>>
>> Paulo
>>
>> - Original Message -
>> From: "Davy Lee" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, December 18, 2006 8:31 AM
>> Subject: Re: [iText-questions] How to merge two 3G size pdf fast
>>
>>
>>>
>>> Dear Paulo,
>>> even for two 2G pdf file, do u have a better sosution to merge them,
>>> sometimes I don't need to modify the pages, sometime I do.
>>> cheers.
>>>
>>> Davy lee
>>>
>>>
>>> Paulo Soares wrote:

 You'll certainly won't use iText to do this. iText has a 2G size
 limitation.

 Paulo

 - Original Message -
 From: "Davy Lee" <[EMAIL PROTECTED]>
 To: 
 Sent: Monday, December 18, 2006 4:11 AM
 Subject: [iText-questions] How to merge two 3G size pdf fast


>
> I have two 3G size pdf files, we need to use ITEXT to merge  
> them into
> one
> single new pdf document.
> However, to do this will waste too much time to finished it. It  
> would
> cost
> us about half days to finish
> to merging process. Do u guys have any new solution to do it?  
> cheers.
> My code is below:
>
> //pdf files array list.
>String [] fileList = {"sample1.pdf","sample2.pdf"};
>
>Document document;
>PdfCopy copy;
>PdfReader reader;
>
>try
>{   // step 1
>document = new Document();
>// step 2
> copy = new PdfCopy(document, new FileOutputStream(
>"sample_Combination.pdf"));
>// step 3
>document.open();
>for(int docNum=0; docNum{
>reader = new PdfReader(new
> RandomAccessFileOrArray(fileList[docNum]), null);
>int pages = reader.getNumberOfPages();
>// step 4
>for (int pageNum = 0; pageNum < pages; )
>{
>++pageNum;
>copy.addPage(copy.getImportedPage(reader,  
> pageNum));
> }//iterate page loop.
>}// iterate doc loop.
>
>// step 5
>document.close();
>
>
>
>}
>catch(IOException e)
>{
>e.printStackTrace();
> }
>catch (DocumentException e)
>{
>e.printStackTrace();
> }
>
> very big thanks in advance.
> -- 
> View this message in context:
> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast- 
> tf2837983.html#a7923347
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance  
> to share

Re: [iText-questions] Swing and FontMapper problem

2006-12-18 Thread Paulo Soares
If I remember well the size is calculated based on the awt size, no matter 
the BaseFont used. It may be another problem related to the printing 
dimensions you are giving that are smaller than printing to screen or you 
are using a very older iText version.

Paulo

- Original Message - 
From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 

Sent: Monday, December 18, 2006 10:33 AM
Subject: Re: [iText-questions] Swing and FontMapper problem


> NCA wrote:
>
>> How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite
>> all the JComponents UI.getPreferredSize code )
>> Here is my code :
>
>>   if ( fontMapper == null )
>>  fontMapper = new DefaultFontMapper();
>
> Please open the document in Adobe Reader and have a look
> at the Fonts panel in the Document Properties window.
> Do you see the font you are expecting, or was Helvetica
> used instead? Maybe you need to write your own font mapper
> so that the correct font is used.
> Mapping Java fonts and actual fonts can be quite a burden.
> br,
> Bruno
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/ 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Swing and FontMapper problem

2006-12-18 Thread Bruno Lowagie (iText)
NCA wrote:

> How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite 
> all the JComponents UI.getPreferredSize code )
> Here is my code :

>   if ( fontMapper == null )
>  fontMapper = new DefaultFontMapper();

Please open the document in Adobe Reader and have a look
at the Fonts panel in the Document Properties window.
Do you see the font you are expecting, or was Helvetica
used instead? Maybe you need to write your own font mapper
so that the correct font is used.
Mapping Java fonts and actual fonts can be quite a burden.
br,
Bruno

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Swing and FontMapper problem

2006-12-18 Thread NCA
Hello,
I want to print a JPanel for a report. In this JPanel I may have any type of 
JComponent (JLabel, JTable, JTree, etc..),
but when I try to print it, the labels are incorrect ( "My te..." instead of 
"My text").
So y looked into the code, and the JLabel's preferredSize is computed using the 
Toolkit.getDefaultToolkit ().getFontMetrics () that's
use the AWT font. So the size isn't good for the BaseFont...
How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite all the 
JComponents UI.getPreferredSize code )
Here is my code :

---

 protected JComponent m_component = null;
 protected FontMapper m_fontMapper = null;

 public ITextJComponent( JComponent p_component )
 {
  m_component = p_component;

  if ( m_component != null )
  m_component.addNotify();
 }

 public void setFontMapper ( FontMapper p_fontMapper )
 {
  m_fontMapper = p_fontMapper;
 }

 public FontMapper getFontMapper ()
 {
  return m_fontMapper;
 }

public void writeToDocument ( PdfContentByte p_pdfContentByte )
  throws DocumentException
 {
Dimension dim = new Dimension ( 500, 200 );

FontMapper fontMapper = m_fontMapper;

  if ( fontMapper == null )
 fontMapper = new DefaultFontMapper();

 PdfTemplate chartTemplate = p_pdfContentByte.createTemplate( dim.width, 
dim.height );
Graphics2D g2 = chartTemplate.createGraphics( dim.width, dim.height, 
fontMapper );

 m_component.setSize( m_component.getPreferredSize() );

// for Container, apply Layout
m_component.doLayout();

 // paint of the component
 m_component.paint( p_graphics );

g2.dispose();
p_pdfContentByte.addTemplate( chartTemplate, location.x, location.y );
}
-
Regards 
Nicolas-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Davy Lee

When I tried to process two 1.6G pdf file, an error occured:

java.io.IOException: Not enough storage is available to process this command
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:742)
at
com.lowagie.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile.java:103)
at
com.lowagie.text.pdf.MappedRandomAccessFile.(MappedRandomAccessFile.java:87)
at
com.lowagie.text.pdf.RandomAccessFileOrArray.(RandomAccessFileOrArray.java:121)
at
com.lowagie.text.pdf.RandomAccessFileOrArray.(RandomAccessFileOrArray.java:80)
at com.lowagie.text.pdf.PRTokeniser.(PRTokeniser.java:108)
at com.lowagie.text.pdf.PdfReader.(PdfReader.java:155)
at com.lowagie.text.pdf.PdfReader.(PdfReader.java:145)
at sticker.Main.main(Main.java:60)


it means that the error occured at :
   reader = new PdfReader(new RandomAccessFileOrArray(fileList[docNum]),
null); 

however, in the book "ITEXT in action" said: using new
RandomAccessFileOrArray(fileList[docNum])
in the pdfreader constructor will partial read the original file, I'm
confusing.

if the error occurs in the pdfReader constructor, it will be still no useful
to rewrite the pdfcopy class or
the pdfwriter class.

cheers,
Davy Lee


 

Paulo Soares wrote:
> 
> The total size of the file can't be 2G so it would be like two 1G files. 
> Doing this will always take a lot of time and a lot of memory unless the 
> number of pages is small. To merge such big files efficiently you'd have
> to 
> create a customized PdfCopy.
> 
> Paulo
> 
> - Original Message - 
> From: "Davy Lee" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 18, 2006 8:31 AM
> Subject: Re: [iText-questions] How to merge two 3G size pdf fast
> 
> 
>>
>> Dear Paulo,
>> even for two 2G pdf file, do u have a better sosution to merge them,
>> sometimes I don't need to modify the pages, sometime I do.
>> cheers.
>>
>> Davy lee
>>
>>
>> Paulo Soares wrote:
>>>
>>> You'll certainly won't use iText to do this. iText has a 2G size
>>> limitation.
>>>
>>> Paulo
>>>
>>> - Original Message - 
>>> From: "Davy Lee" <[EMAIL PROTECTED]>
>>> To: 
>>> Sent: Monday, December 18, 2006 4:11 AM
>>> Subject: [iText-questions] How to merge two 3G size pdf fast
>>>
>>>

 I have two 3G size pdf files, we need to use ITEXT to merge them into 
 one
 single new pdf document.
 However, to do this will waste too much time to finished it. It would
 cost
 us about half days to finish
 to merging process. Do u guys have any new solution to do it? cheers.
 My code is below:

 //pdf files array list.
String [] fileList = {"sample1.pdf","sample2.pdf"};

Document document;
PdfCopy copy;
PdfReader reader;

try
{   // step 1
document = new Document();
// step 2
 copy = new PdfCopy(document, new FileOutputStream(
"sample_Combination.pdf"));
// step 3
document.open();
for(int docNum=0; docNum>>>{
reader = new PdfReader(new
 RandomAccessFileOrArray(fileList[docNum]), null);
int pages = reader.getNumberOfPages();
// step 4
for (int pageNum = 0; pageNum < pages; )
{
++pageNum;
copy.addPage(copy.getImportedPage(reader, pageNum));
 }//iterate page loop.
}// iterate doc loop.

// step 5
document.close();



}
catch(IOException e)
{
e.printStackTrace();
 }
catch (DocumentException e)
{
e.printStackTrace();
 }

 very big thanks in advance.
 -- 
 View this message in context:
 http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
 Sent from the iText - General mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT & business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
>>>
>>>
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net

Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread robert engels
The final merged.

On Dec 18, 2006, at 2:31 AM, Davy Lee wrote:

>
> Dear Paulo,
> even for two 2G pdf file, do u have a better sosution to merge them,
> sometimes I don't need to modify the pages, sometime I do.
>
> btw, the 2G limitation is for the original pdf file or for the  
> finnal merged
> file?
> cheers.
>
> Davy lee
>
>
> Paulo Soares wrote:
>>
>> You'll certainly won't use iText to do this. iText has a 2G size
>> limitation.
>>
>> Paulo
>>
>> - Original Message -
>> From: "Davy Lee" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, December 18, 2006 4:11 AM
>> Subject: [iText-questions] How to merge two 3G size pdf fast
>>
>>
>>>
>>> I have two 3G size pdf files, we need to use ITEXT to merge them  
>>> into one
>>> single new pdf document.
>>> However, to do this will waste too much time to finished it. It  
>>> would
>>> cost
>>> us about half days to finish
>>> to merging process. Do u guys have any new solution to do it?  
>>> cheers.
>>> My code is below:
>>>
>>> //pdf files array list.
>>>String [] fileList = {"sample1.pdf","sample2.pdf"};
>>>
>>>Document document;
>>>PdfCopy copy;
>>>PdfReader reader;
>>>
>>>try
>>>{   // step 1
>>>document = new Document();
>>>// step 2
>>> copy = new PdfCopy(document, new FileOutputStream(
>>>"sample_Combination.pdf"));
>>>// step 3
>>>document.open();
>>>for(int docNum=0; docNum>>{
>>>reader = new PdfReader(new
>>> RandomAccessFileOrArray(fileList[docNum]), null);
>>>int pages = reader.getNumberOfPages();
>>>// step 4
>>>for (int pageNum = 0; pageNum < pages; )
>>>{
>>>++pageNum;
>>>copy.addPage(copy.getImportedPage(reader,  
>>> pageNum));
>>> }//iterate page loop.
>>>}// iterate doc loop.
>>>
>>>// step 5
>>>document.close();
>>>
>>>
>>>
>>>}
>>>catch(IOException e)
>>>{
>>>e.printStackTrace();
>>> }
>>>catch (DocumentException e)
>>>{
>>>e.printStackTrace();
>>> }
>>>
>>> very big thanks in advance.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast- 
>>> tf2837983.html#a7923347
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>>  
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share
>>> your
>>> opinions on IT & business topics through brief surveys - and earn  
>>> cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> ___
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>>
>>
>> - 
>> 
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share
>> your
>> opinions on IT & business topics through brief surveys - and earn  
>> cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/How-to-merge- 
> two-3G-size-pdf-fast-tf2837983.html#a7925099
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-qu

Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Paulo Soares
The total size of the file can't be 2G so it would be like two 1G files. 
Doing this will always take a lot of time and a lot of memory unless the 
number of pages is small. To merge such big files efficiently you'd have to 
create a customized PdfCopy.

Paulo

- Original Message - 
From: "Davy Lee" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 18, 2006 8:31 AM
Subject: Re: [iText-questions] How to merge two 3G size pdf fast


>
> Dear Paulo,
> even for two 2G pdf file, do u have a better sosution to merge them,
> sometimes I don't need to modify the pages, sometime I do.
> cheers.
>
> Davy lee
>
>
> Paulo Soares wrote:
>>
>> You'll certainly won't use iText to do this. iText has a 2G size
>> limitation.
>>
>> Paulo
>>
>> - Original Message - 
>> From: "Davy Lee" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, December 18, 2006 4:11 AM
>> Subject: [iText-questions] How to merge two 3G size pdf fast
>>
>>
>>>
>>> I have two 3G size pdf files, we need to use ITEXT to merge them into 
>>> one
>>> single new pdf document.
>>> However, to do this will waste too much time to finished it. It would
>>> cost
>>> us about half days to finish
>>> to merging process. Do u guys have any new solution to do it? cheers.
>>> My code is below:
>>>
>>> //pdf files array list.
>>>String [] fileList = {"sample1.pdf","sample2.pdf"};
>>>
>>>Document document;
>>>PdfCopy copy;
>>>PdfReader reader;
>>>
>>>try
>>>{   // step 1
>>>document = new Document();
>>>// step 2
>>> copy = new PdfCopy(document, new FileOutputStream(
>>>"sample_Combination.pdf"));
>>>// step 3
>>>document.open();
>>>for(int docNum=0; docNum>>{
>>>reader = new PdfReader(new
>>> RandomAccessFileOrArray(fileList[docNum]), null);
>>>int pages = reader.getNumberOfPages();
>>>// step 4
>>>for (int pageNum = 0; pageNum < pages; )
>>>{
>>>++pageNum;
>>>copy.addPage(copy.getImportedPage(reader, pageNum));
>>> }//iterate page loop.
>>>}// iterate doc loop.
>>>
>>>// step 5
>>>document.close();
>>>
>>>
>>>
>>>}
>>>catch(IOException e)
>>>{
>>>e.printStackTrace();
>>> }
>>>catch (DocumentException e)
>>>{
>>>e.printStackTrace();
>>> }
>>>
>>> very big thanks in advance.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>> your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> ___
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7925099
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/ 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 

Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Davy Lee

Dear Paulo,
even for two 2G pdf file, do u have a better sosution to merge them,
sometimes I don't need to modify the pages, sometime I do.
cheers.

Davy lee


Paulo Soares wrote:
> 
> You'll certainly won't use iText to do this. iText has a 2G size
> limitation.
> 
> Paulo
> 
> - Original Message - 
> From: "Davy Lee" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 18, 2006 4:11 AM
> Subject: [iText-questions] How to merge two 3G size pdf fast
> 
> 
>>
>> I have two 3G size pdf files, we need to use ITEXT to merge them into one
>> single new pdf document.
>> However, to do this will waste too much time to finished it. It would
>> cost
>> us about half days to finish
>> to merging process. Do u guys have any new solution to do it? cheers.
>> My code is below:
>>
>> //pdf files array list.
>>String [] fileList = {"sample1.pdf","sample2.pdf"};
>>
>>Document document;
>>PdfCopy copy;
>>PdfReader reader;
>>
>>try
>>{   // step 1
>>document = new Document();
>>// step 2
>> copy = new PdfCopy(document, new FileOutputStream(
>>"sample_Combination.pdf"));
>>// step 3
>>document.open();
>>for(int docNum=0; docNum>{
>>reader = new PdfReader(new
>> RandomAccessFileOrArray(fileList[docNum]), null);
>>int pages = reader.getNumberOfPages();
>>// step 4
>>for (int pageNum = 0; pageNum < pages; )
>>{
>>++pageNum;
>>copy.addPage(copy.getImportedPage(reader, pageNum));
>> }//iterate page loop.
>>}// iterate doc loop.
>>
>>// step 5
>>document.close();
>>
>>
>>
>>}
>>catch(IOException e)
>>{
>>e.printStackTrace();
>> }
>>catch (DocumentException e)
>>{
>>e.printStackTrace();
>> }
>>
>> very big thanks in advance.
>> -- 
>> View this message in context: 
>> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
>> Sent from the iText - General mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share 
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/ 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7925099
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Paulo Soares
You'll certainly won't use iText to do this. iText has a 2G size limitation.

Paulo

- Original Message - 
From: "Davy Lee" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 18, 2006 4:11 AM
Subject: [iText-questions] How to merge two 3G size pdf fast


>
> I have two 3G size pdf files, we need to use ITEXT to merge them into one
> single new pdf document.
> However, to do this will waste too much time to finished it. It would cost
> us about half days to finish
> to merging process. Do u guys have any new solution to do it? cheers.
> My code is below:
>
> //pdf files array list.
>String [] fileList = {"sample1.pdf","sample2.pdf"};
>
>Document document;
>PdfCopy copy;
>PdfReader reader;
>
>try
>{   // step 1
>document = new Document();
>// step 2
> copy = new PdfCopy(document, new FileOutputStream(
>"sample_Combination.pdf"));
>// step 3
>document.open();
>for(int docNum=0; docNum{
>reader = new PdfReader(new
> RandomAccessFileOrArray(fileList[docNum]), null);
>int pages = reader.getNumberOfPages();
>// step 4
>for (int pageNum = 0; pageNum < pages; )
>{
>++pageNum;
>copy.addPage(copy.getImportedPage(reader, pageNum));
> }//iterate page loop.
>}// iterate doc loop.
>
>// step 5
>document.close();
>
>
>
>}
>catch(IOException e)
>{
>e.printStackTrace();
> }
>catch (DocumentException e)
>{
>e.printStackTrace();
> }
>
> very big thanks in advance.
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/ 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] How to merge two 3G size pdf fast

2006-12-18 Thread Davy Lee

I have two 3G size pdf files, we need to use ITEXT to merge them into one
single new pdf document.
However, to do this will waste too much time to finished it. It would cost
us about half days to finish 
to merging process. Do u guys have any new solution to do it? cheers. 
My code is below:

 //pdf files array list.
String [] fileList = {"sample1.pdf","sample2.pdf"};

Document document;
PdfCopy copy;
PdfReader reader;

try
{   // step 1
document = new Document();
// step 2
 copy = new PdfCopy(document, new FileOutputStream(
"sample_Combination.pdf"));
// step 3
document.open();
for(int docNum=0; docNumhttp://www.nabble.com/How-to-merge-two-3G-size-pdf-fast-tf2837983.html#a7923347
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/