Hello,
populate an XFA PDF with dynamic rows using iText. Here i need
to run the query, depending on the query result i need to add the rows on
XFA PDF.
Is this possible to manipulate XFA PDF with dynamic rows?
looking for great suggesions.
Thanks,
--Dhanu...
On Mon, May 4, 2009 at 5:02 PM, <
[email protected]> wrote:
> Send iText-questions mailing list submissions to
> [email protected]
>
> 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
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
> 1. Imported pages are too slow (Kruzic, Alex x55204) (Klas Lindb?ck)
> 2. I text pdf to html (Mehmood)
> 3. Re: iText-questions Digest, Vol 36, Issue 4 (DHANU BUDIREDDI)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 04 May 2009 09:58:13 +0200
> From: Klas Lindb?ck <[email protected]>
> Subject: [iText-questions] Imported pages are too slow (Kruzic, Alex
> x55204)
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> You can try caching the imported page in memory. If the number of
> templates is small the memory
> overhead will be managable.
> Is the template large? In that case you can also try to re-create the
> template.
> When I create PDF:s using a simple template combined with data from the
> database I have
> creation times of around 0.2 seconds (including the database call), so 2
> seconds seems a lot.
>
> /Klas
>
> > ----- Original Message -----
> > From: "Kruzic, Alex x55204" <[email protected]>
> > To: <[email protected]>
> > Sent: Friday, May 01, 2009 2:54 PM
> > Subject: [iText-questions] Imported pages are too slow
> >
> > It seems that that line 3 below is very slow. On average it takes 2
> seconds
> > to run. My app needs to generate 11,000 PDF's and with this code below,
> it
> > takes over a day!
> >
> > Now if I comment out line 3, it finishes in 7 minutes. Big, big
> difference.
> > Does anyone know why this code is so slow, and even more importantly, is
> > there a way to do this better.
> >
> > Thanks.
> >
> > Alex
> >
> > PdfImportedPage page = null;
> > PdfContentByte cb = PDFwriter.getDirectContent();
> > page = PDFwriter.getImportedPage(PDFreader, iPages);
> > cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0);
> >
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 4 May 2009 13:03:47 +0530
> From: Mehmood <[email protected]>
> Subject: [iText-questions] I text pdf to html
> To: [email protected]
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I really appreciate your effort for making such a wonderful product . I
> have
> using it for a year for printing the contents by generating pdf from
> database using iText.
>
> Now I have posed with a different task where I have to generate a html
> format from the existing pdf documents. I don't want exact layouts of
> original pdf but what I need is just the text formatting to be exactly same
> as in pdf. Like italics,small caps,bold and also the unicode charachters. I
> am willing to try for myself and I am already on the run. But I need to
> know
> before whether this will be generated properly using iText.
>
> Thanks,
> Mehmood.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 4 May 2009 17:02:07 +0530
> From: DHANU BUDIREDDI <[email protected]>
> Subject: Re: [iText-questions] iText-questions Digest, Vol 36, Issue 4
> To: [email protected]
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
> populate an XFA PDF with dynamic rows using iText. Here i need
> to run the query, depending on the query result i need to add the rows on
> XFA PDF.
>
> Is this possible to manipulate XFA PDF with dynamic rows?
>
> looking for great suggesions.
>
> Thanks,
> --Dhanu
>
>
> On Mon, May 4, 2009 at 2:33 PM, <
> [email protected]> wrote:
>
> > Send iText-questions mailing list submissions to
> > [email protected]
> >
> > 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
> > [email protected]
> >
> > You can reach the person managing the list at
> > [email protected]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of iText-questions digest..."
> >
> >
> > Today's Topics:
> >
> > 1. read char by char (Ragia Ibrahim)
> > 2. Determine whether font size exceeds acrofield capacity
> > (Bordeman, Chris)
> > 3. Merge pdf with bookmarks with kids (Zhang, Ying - 43)
> > 4. Html to Pdf (deep4u)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Fri, 1 May 2009 17:55:13 +0000
> > From: Ragia Ibrahim <[email protected]>
> > Subject: [iText-questions] read char by char
> > To: <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset="windows-1256"
> >
> >
> >
> > Hi
> >
> > can i read the pdf file text char by char and determine if there's space
> > or not
> >
> > can i read new line...if i read it char by char....
> >
> > Ragia
> >
> >
> >
> > From: [email protected]
> > To: [email protected]
> > Date: Thu, 30 Apr 2009 20:44:58 +0000
> > Subject: Re: [iText-questions] paragraph delimeter
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > bruno thanks for replying
> > I downloaded pdf files from the web
> > I dont know if it's tagged or not
> > how can i know that?
> > and if yes tagged does that mean that thers such as<p> tagg for
> paragraphs
> > ??
> > how can i access such stuff?
> >
> >
> >
> > Ragia
> >
> >
> >
> > > Date: Thu, 30 Apr 2009 16:42:22 +0200
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: Re: [iText-questions] paragraph delimeter
> > >
> > > deep4u wrote:
> > > > Hello,
> > > > Thanks for u r reply but i am not understanding that one
> could
> > you
> > > > send me the code.
> > >
> > > What code? First you have to answer the question:
> > > are you talking about Tagged PDF or not?
> > >
> > > > Exactly my requirement is suppose html file having links(may be Table
> > of
> > > > contents, External links and internal, bookmarks) after converting
> pdf
> > also
> > > > those links will work.
> > > > please let me know the solution.
> > >
> > > Hire a consultant.
> > > br,
> > > Bruno
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Register Now & Save for Velocity, the Web Performance & Operations
> > > Conference from O'Reilly Media. Velocity features a full day of
> > > expert-led, hands-on workshops and two days of sessions from industry
> > > leaders in dedicated Performance & Operations tracks. Use code vel09scf
> > > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> > > _______________________________________________
> > > iText-questions mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > > Buy the iText book: http://www.1t3xt.com/docs/book.php
> > > Check the site with examples before you ask questions:
> > http://www.1t3xt.info/examples/
> > > You can also search the keywords list:
> > http://1t3xt.info/tutorials/keywords/
> >
> > Get news, entertainment and everything you care about at Live.com. Check
> it
> > out!
> > _________________________________________________________________
> > More than messages?check out the rest of the Windows Live?.
> > http://www.microsoft.com/windows/windowslive/
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Fri, 1 May 2009 14:54:33 -0500
> > From: "Bordeman, Chris" <[email protected]>
> > Subject: [iText-questions] Determine whether font size exceeds
> > acrofield capacity
> > To: "Post all your questions about iText here"
> > <[email protected]>
> > Message-ID:
> > <
> > aa8c0f4acd76f748be718837b16fc55506088...@wkclrtx95008.na.wkglobal.com>
> >
> > Content-Type: text/plain; charset="us-ascii"
> >
> > I need to determine for a particular field (I have Acrofield object)
> > whether a given font size would cause a certain string value to be too
> > large to fit.
> >
> > How can this be done?
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Fri, 1 May 2009 15:08:43 -0500
> > From: "Zhang, Ying - 43" <[email protected]>
> > Subject: [iText-questions] Merge pdf with bookmarks with kids
> > To: <[email protected]>
> > Message-ID:
> > <[email protected]
> >
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Hi, I'm a newbie to itext. I'm trying to merge a few pdf generated by
> > itext. Some of them have bookmarks with kids (2nd level), I do not want
> > to loose this in the merge so here's what I want to do:
> >
> > public static ByteArrayOutputStream mergeReports(
> > ByteArrayOutputStream ... reports) {
> >
> > ByteArrayOutputStream mergedReport = new ByteArrayOutputStream();
> >
> > try {
> >
> > Document document = new Document();
> > PdfCopy copy = new PdfCopy(document, mergedReport);
> > document.open();
> > PdfOutline root = copy.getRootOutline();
> > copy.setViewerPreferences(PdfWriter.PageModeUseOutlines);
> >
> > for(ByteArrayOutputStream report : reports) {
> >
> > if (report != null && report.size() > 0) {
> >
> > // Create a PDF Reader for each report
> > PdfReader reader = new PdfReader(report.toByteArray());
> > int noOfPages = reader.getNumberOfPages();
> >
> > // Create the outline
> > @SuppressWarnings("unchecked")
> > List<HashMap<String, Object>> list =
> > SimpleBookmark.getBookmark(reader);
> >
> > PdfOutline outTop = null;
> > HashMap<String, Object> bookmark = null;
> > Map<Integer, String> kidBookmarks = new HashMap<Integer, String>();
> > if (list != null) {
> > bookmark = list.get(0);
> > String bookmarkTitle = (String) bookmark.get("Title");
> > PdfDestination dest = new PdfDestination(PdfDestination.FIT);
> > outTop = new PdfOutline(root, dest, bookmarkTitle);
> > List<HashMap<String, String>> kids = (List<HashMap<String,
> > String>>)bookmark.get("Kids");
> > if(kids != null) {
> > // convert this a map where the key is the page number and the
> > value is the bookmark title
> > for(HashMap<String, String> kid : kids) {
> > String title = kid.get("Title");
> > String page = StringUtils.replace(kid.get("Page"), " Fit", "");
> > kidBookmarks.put(new Integer(page), title);
> > }
> > }
> > }
> >
> > for(int i = 1; i <= noOfPages; i++) {
> > PdfImportedPage importPage = copy.getImportedPage(reader, i);
> > String bookmarkTitle = kidBookmarks.get(Integer.valueOf(i));
> > if(StringUtils.isNotBlank(bookmarkTitle)) {
> > PdfOutline thisOutline = new PdfOutline(outTop, new
> > PdfDestination(PdfDestination.FIT), bookmarkTitle);
> > copy.add(thisOutline);
> > }
> > copy.addPage(importPage);
> > }
> >
> > reader.close();
> >
> > }
> >
> > }
> >
> > document.close();
> >
> > } catch(Exception ex) {
> > throw new RuntimeException(ex);
> > }
> >
> > return mergedReport;
> > }
> >
> > Unfortunately the child outlines DO NOT show up when I look for the kids
> > in the reader bookmark.
> >
> > I tested without the kids logic and it works just fine i.e.:
> >
> > for(int i = 1; i <= noOfPages; i++) {
> > PdfImportedPage importPage = copy.getImportedPage(reader, i);
> > PdfDestination dest = new PdfDestination(PdfDestination.FIT);
> > PdfOutline thisOutline = new PdfOutline(outTop, dest, "test"+i);
> > // <-- this will show up
> > copy.add(thisOutline);
> > copy.addPage(importPage);
> > }
> >
> >
> > Then I added something like
> >
> > for(int i = 1; i <= noOfPages; i++) {
> > PdfImportedPage importPage = copy.getImportedPage(reader, i);
> > if(kids != null)
> > PdfDestination dest = new PdfDestination(PdfDestination.FIT);
> > PdfOutline thisOutline = new PdfOutline(outTop, dest, "test"+i);
> > // <-- this now NO LONGER shows up even tho it does stop at my break pt
> > on this line
> > copy.add(thisOutline);
> > }
> > copy.addPage(importPage);
> > }
> >
> > Immediately the 2nd level bookmarks stopped showing up. I do not
> > understand just by calling bookmark.get("Kids") would have such an
> > effect?
> >
> > Maybe I'm seriously missing something here?
> >
> > Please help. This is driving me crazy for the last four hours :)
> >
> > Thank you!
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Mon, 4 May 2009 02:03:38 -0700 (PDT)
> > From: deep4u <[email protected]>
> > Subject: [iText-questions] Html to Pdf
> > To: [email protected]
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=us-ascii
> >
> >
> > Hello,
> > Bookmarks are not same as the Table of contents.
> > I need TableOfContents. suppose one html file having Tableofcontents
> after
> > generating pdf also those will be work. I am uploading my html file using
> > that to convert pdf and also those TOC will be work.
> >
> > Thanks,
> >
> >
> > Leonard Rosenthol-3 wrote:
> > >
> > > Most PDFs are not tagged. You can tell by opening the PDF up in Adobe
> > > Acrobat/Reader, doing a document properties and seeing if says "Tagged:
> > > yes".
> > >
> > > Tags are LIKE <p>, but not exactly. Details are in the PDF
> Reference/ISO
> > > 32000-1.
> > >
> > > You would use low level API calls in iText to do it. It's a LOT of
> > > work...
> > >
> > > Leonard
> > >
> > > From: Ragia Ibrahim [mailto:[email protected]]
> > > Sent: Thursday, April 30, 2009 4:45 PM
> > > To: [email protected]
> > > Subject: Re: [iText-questions] paragraph delimeter
> > >
> > >
> > > bruno thanks for replying
> > > I downloaded pdf files from the web
> > > I dont know if it's tagged or not
> > > how can i know that?
> > > and if yes tagged does that mean that thers such as<p> tagg for
> > paragraphs
> > > ??
> > > how can i access such stuff?
> > >
> > >
> > > Ragia
> > >
> > >
> > >
> > >
> > >> Date: Thu, 30 Apr 2009 16:42:22 +0200
> > >> From: [email protected]
> > >> To: [email protected]
> > >> Subject: Re: [iText-questions] paragraph delimeter
> > >>
> > >> deep4u wrote:
> > >> > Hello,
> > >> > Thanks for u r reply but i am not understanding that one could you
> > >> > send me the code.
> > >>
> > >> What code? First you have to answer the question:
> > >> are you talking about Tagged PDF or not?
> > >>
> > >> > Exactly my requirement is suppose html file having links(may be
> Table
> > >> of
> > >> > contents, External links and int! ernal, bookmarks) after converting
> > >> pdf also
> > >> > those links will work.
> > >> > please let me know the solution.
> > >>
> > >> Hire a consultant.
> > >> br,
> > >> Bruno
> > >>
> > >>
> >
> ------------------------------------------------------------------------------
> > >> Register Now & Save for Velocity, the Web Performance & Operations
> > >> Conference from O'Reilly Media. Velocity features a full day of
> > >> expert-led, hands-on workshops and two days of sessions from industry
> > >> leaders in dedicated Performance & Operations tracks. Use code
> vel09scf
> > >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> > >> _______________________________________________
> > >> iText-questions mailing list
> > >> [email protected]
> > >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >>
> > >> Buy the iText book: http://www.1t3xt.com/docs/book.php
> > >> Check the site with ! examples before you ask questions:
> > >> http://www.1t3xt.info/examp! les/
> > >> You can also search the keywords list:
> > >> http://1t3xt.info/tutorials/keywords/
> > > ________________________________
> > > Get news, entertainment and everything you care about at Live.com.
> Check
> > > it out!<http://www.live.com/getstarted.aspx%20>
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Register Now & Save for Velocity, the Web Performance & Operations
> > > Conference from O'Reilly Media. Velocity features a full day of
> > > expert-led, hands-on workshops and two days of sessions from industry
> > > leaders in dedicated Performance & Operations tracks. Use code vel09scf
> > > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> > > _______________________________________________
> > > iText-questions mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > > Buy the iText book: http://www.1t3xt.com/docs/book.php
> > > Check the site with examples before you ask questions:
> > > http://www.1t3xt.info/examples/
> > > You can also search the keywords list:
> > > http://1t3xt.info/tutorials/keywords/
> > >
> > http://www.nabble.com/file/p23365106/gone.html gone.html
> > --
> > View this message in context:
> > http://www.nabble.com/Html-to-Pdf-tp23295842p23365106.html
> > Sent from the iText - General mailing list archive at Nabble.com.
> >
> >
> >
> >
> > ------------------------------
> >
> >
> >
> ------------------------------------------------------------------------------
> > Register Now & Save for Velocity, the Web Performance & Operations
> > Conference from O'Reilly Media. Velocity features a full day of
> > expert-led, hands-on workshops and two days of sessions from industry
> > leaders in dedicated Performance & Operations tracks. Use code vel09scf
> > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> >
> > ------------------------------
> >
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> >
> > End of iText-questions Digest, Vol 36, Issue 4
> > **********************************************
> >
>
>
>
> --
> Dhananjaya Rao.B
> eParadigm Softech Pvt Ltd.
> Hyderabad
> Mobile:+919985558708
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
>
> ------------------------------
>
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> End of iText-questions Digest, Vol 36, Issue 5
> **********************************************
>
--
Dhananjaya Rao.B
eParadigm Softech Pvt Ltd.
Hyderabad
Mobile:+919985558708
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/