Pages are NOT self-contained entities.  They only exist in the context of its 
parent PDF.

Leonard

From: sselvia [mailto:[email protected]]
Sent: Tuesday, April 03, 2012 1:06 PM
To: [email protected]
Subject: Re: [iText-questions] Write PDF page to database BLOB column

Alexis,

Thought of that, but I did not know if there would be a better way.
It would be great if I could get the PdfImportedPage as a byte array
and then store that byte array into the blob.  From that point I can
create a new PDF and pull rows of blobs as byte arrays and set them
into a new PdfImportedPage's.

Thanks,

Scott

On Tue, Apr 3, 2012 at 3:33 AM, Alexis Pigeon [via iText - General]
<[hidden email]</user/SendEmail.jtp?type=node&node=4529511&i=0>> wrote:

> Hi Scott,
>
>
> On 3 April 2012 03:04, sselvia <[hidden email]> 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
> [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
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://itext-general.2136553.n4.nabble.com/Write-PDF-page-to-database-BLOB-column-tp4525032p4528022.html
> To unsubscribe from Write PDF page to database BLOB column, click here.
> NAML

________________________________
View this message in context: Re: Write PDF page to database BLOB 
column<http://itext-general.2136553.n4.nabble.com/Write-PDF-page-to-database-BLOB-column-tp4525032p4529511.html>
Sent from the iText - General mailing list 
archive<http://itext-general.2136553.n4.nabble.com/> at Nabble.com.
------------------------------------------------------------------------------
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