Hi Scott,

On 3 April 2012 03:04, sselvia <[email protected]> wrote:

> Alexis,
>
> I am using iText to extract pages from a PDF as PdfImportedPage and I was
> wanting to store the import page to a BLOB column.  Then later on extract
> the PdfImportedPage from the BLOB and create a new PDF with that page.  I
> would be using iText to extract the page and using iText to write the new
> PDF.
>
> I've used the Netbeans PDF Debug plugin and I've been able to see the
> Stream
> of a page, so I've had the idea that I could extract a page and then write
> a
> PDF with that extracted page.  I am using the following code to write a PDF
> directly but I wanted to pull the page content from a BLOB column instead
> of
> an existing PDF.
>
> PdfImportedPage importPage = pdfWriter.getImportedPage(pdfReader, i);
> pdfWriter.addPage(importPage);
> pdfWriter.close();
> pdfWriter.freeReader(pdfReader);
>

What about this?

- Split the original PDF into one-page PDF files
- Store each single-page PDF file into a BLOB

then

- Read each BLOB content as a PDF file
- Concat the single-page PDF files into a multi-page PDF file

HTH,
alexis
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to