> I'm able to open with Adobe Reader the pdf file used on my test, no

> error is shown during the process. The version of the file is 1.6



Your questions are hard to interpret for humans,

your code is hard to interpret for machines.

Thank you for your answer

Based on the book (and because what I need is to split the pdf file into pages) I'm testing the following code protected bool SplitPDFFile_ExtractOnePage(string SourcefilePath, string DestinyPagePath, int PageNumber)
{
bool aResult = false;
try
{
PdfReader _reader = new PdfReader(SourcefilePath);
_reader.SelectPages(PageNumber.ToString());
PdfStamper _stamper = new PdfStamper(_reader, new FileStream(DestinyPagePath, FileMode.Create));
_stamper.Close();
aResult = true;
}
catch (Exception ex)
{
}
return aResult;
}
It seems to work for me, I have to do further tests.

I mentioned that Adobe Acrobat Reader was able to open the source file as my test to proof that the original file was not corrupt.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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