|
I have a jpanel of size 2326*750 and need to put its contents into pdf where in page size is a4.The fields in jpanel are not added in sequence so fields from any position can come and i need to create its correponding part in pdf with proportionate size and position
the look and feel shold be same only size should be reduced when placed in pdf |
|
There is a section of the iText in Action book that covers this question
in detail. There are also many examples in the iText archives related to this. I tell you this to teach you to fish instead of providing your meal for you. -Bill Ensley www.bearprinting.com On 1/29/2012 12:33 AM, bijalvadher wrote: > I have a jpanel of size 2326*750 and need to put its contents into pdf where > in page size is a4.The fields in jpanel are not added in sequence so fields > from any position can come and i need to create its correponding part in pdf > with proportionate size and position > the look and feel shold be same > only size should be reduced when placed in pdf > > > -- > View this message in context: http://itext-general.2136553.n4.nabble.com/jpanel-to-itext-pdf-tp4337819p4337819.html > Sent from the iText - General mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > iText-questions mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php |
|
I know you are talking about the scaling and transformation matrix....but only that doesnt solve my problem .I also need some control which can make it possible to move from one page to other...i can specify the page number it has to go to that particular page and write there...is that possible through itext.pls reply asap.Its very imp for me to deal this asap.
On Mon, Jan 30, 2012 at 1:23 AM, Bill Ensley <[hidden email]> wrote: There is a section of the iText in Action book that covers this question ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php |
|
I'm not sure I understand your question, so I'll ask my own.
Do you want to draw the contents of a JPanel into a PDF? If so, all you need is to pass a PDFGraphics2D object from the appropriate page into your JPanel and then ask the JPanel to paint itself. If you are asking if iText can reformat your JPanel content to fit a certain page, then the answer is no. It will have to work the other way around, you will have to format your JPanel to fit the PDF page you are painting into. -Bill Ensley www.bearprinting.com On 1/29/2012 8:18 PM, bijal vadher wrote: I know you are talking about the scaling and transformation matrix....but only that doesnt solve my problem .I also need some control which can make it possible to move from one page to other...i can specify the page number it has to go to that particular page and write there...is that possible through itext.pls reply asap.Its very imp for me to deal this asap. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php |
| Powered by Nabble | See how NAML generates this page |
