Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: urgent -- file creation in c# Pin
That Asian Guy28-Oct-08 18:47
That Asian Guy28-Oct-08 18:47 
QuestionAdd multiple values to a SqlParameter Pin
Brad Wick28-Oct-08 12:46
Brad Wick28-Oct-08 12:46 
AnswerRe: Add multiple values to a SqlParameter Pin
HemJoshi28-Oct-08 20:40
HemJoshi28-Oct-08 20:40 
AnswerRe: Add multiple values to a SqlParameter Pin
Giorgi Dalakishvili28-Oct-08 21:11
mentorGiorgi Dalakishvili28-Oct-08 21:11 
QuestionSmart Device Cab Installer Pin
blackdogjet28-Oct-08 12:28
blackdogjet28-Oct-08 12:28 
Questiontext color Pin
netJP12L28-Oct-08 10:58
netJP12L28-Oct-08 10:58 
QuestionListView logging takes focus from other controls Pin
Statoon420028-Oct-08 8:56
Statoon420028-Oct-08 8:56 
QuestionURGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
vinoo8028-Oct-08 8:41
vinoo8028-Oct-08 8:41 
Hi
I am trying to parse the contents of the PDF with iTextSharp using :

PdfReader reader = new PdfReader("Test.pdf");
reader.GetPageContent(pageNumber);

byte[] pageContentByteArray;

I am using this byte array to search for a partcular text based on a Delimiter pattern by converting this to string by using -

string test = Encoding.ASCII.GetString(pageContentByteArray);

The required text pattern can be matched inside this string.

The above logic works absolutely fine if we use a normal PDF input file.

My requirement is to read a PDF file which is created by CRYSTAL REPORTS (Version-9).

I have a byte array with me. But I tried to convert to string using ASCII, UNICODE , UTF8

string test = Encoding.ASCII.GetString(invoicePageContentByteArray);
string test = Encoding.Unicode.GetString(invoicePageContentByteArray);
string test = Encoding.UTF8.GetString(invoicePageContentByteArray);

I could not find the text pattern in the output string. I guess the PDF generated out of crystal reports is using some other encoding format.

(Note : We verified the template used by crystal reports to generate the PDF. The search delimiter pattern is defined as the Text object)

Can anyone suggest ideas to resolve the above problem.

Thanks,
Uma
AnswerRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
leckey28-Oct-08 9:50
leckey28-Oct-08 9:50 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Paul Conrad28-Oct-08 11:05
professionalPaul Conrad28-Oct-08 11:05 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
leckey28-Oct-08 11:07
leckey28-Oct-08 11:07 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Paul Conrad28-Oct-08 11:09
professionalPaul Conrad28-Oct-08 11:09 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
leckey28-Oct-08 11:10
leckey28-Oct-08 11:10 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Paul Conrad28-Oct-08 11:14
professionalPaul Conrad28-Oct-08 11:14 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
vinoo8028-Oct-08 11:17
vinoo8028-Oct-08 11:17 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Paul Conrad28-Oct-08 11:21
professionalPaul Conrad28-Oct-08 11:21 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Furty29-Oct-08 0:48
Furty29-Oct-08 0:48 
AnswerRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
Kythen29-Oct-08 10:40
Kythen29-Oct-08 10:40 
GeneralRe: URGENT : Help with parsing the PDF generated by Crystal reports-V9 Pin
vinoo8029-Oct-08 15:40
vinoo8029-Oct-08 15:40 
QuestionProblem saving changes to a database VS C# 2005 Pin
danielhasdibs28-Oct-08 8:18
danielhasdibs28-Oct-08 8:18 
AnswerRe: Problem saving changes to a database VS C# 2005 Pin
Rajasekharan Vengalil28-Oct-08 8:28
Rajasekharan Vengalil28-Oct-08 8:28 
AnswerRe: Problem saving changes to a database VS C# 2005 Pin
Paul Conrad28-Oct-08 11:08
professionalPaul Conrad28-Oct-08 11:08 
GeneralRe: Problem saving changes to a database VS C# 2005 Pin
danielhasdibs29-Oct-08 4:03
danielhasdibs29-Oct-08 4:03 
QuestionRe: Problem saving changes to a database VS C# 2005 Pin
danielhasdibs29-Oct-08 3:41
danielhasdibs29-Oct-08 3:41 
AnswerRe: Problem saving changes to a database VS C# 2005 Pin
danielhasdibs29-Oct-08 9:34
danielhasdibs29-Oct-08 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.