Solved

convert PDF page to Image using iTextSharp

Posted on 2013-05-09
8
1,482 Views
Last Modified: 2013-07-29
I have an ASP.NET project.
Single page PDF file is stored in the database.  I have to display it as a sub report in crystal report.
I am using iTextSharp.

Please
*1 Explain me how to display PDF in crystal report as a subreport.
or
*2 Explain me how to use iTextSharp to convert that PDF into an image (I know how to display image in crystal report as subreport)
0
Comment
Question by:vu3lmg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39154366
You should be able to display the PDF directly

Create a new report
Unless you need data for something click OK on the data screen
Click INSERT --> OLE OBJECT
Choose Adobe Acrobat Document from the drop down
Navigate to the file
Select the file
Click OPEN
Insert where you want it
Size it to fit the page

mlmcc
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39155658
mlmcc
Since the report is generated dynamically.  The PDF is also different every time.
The report does not seem to refresh with new PDF content. It displays the content that was loaded when I inserted the OLE OBJECT.
How do I refresh the content after changing the underlaying PDF file ?
VU3LMG
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39155949
Is the PDF named the same each time or are they creating a new PDF with a new name?

If it is a new PDF (name) each time then you can't do it.  Crystal only allows dynamic images.

If you just change the existing PDF then the report should update it on open or you may have to refresh the report.

mlmcc
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 1

Author Comment

by:vu3lmg
ID: 39156045
mlmcc
Yes the PDF is named the same each time.
Are you suggesting to user .RefreshReport() method ?
This PDF is contained in a subreport, how do I refresh a subreport ?
VU3LMG
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39156073
The subreport should refresh when you refresh the main report.

SO long as the report is not saved with data, it should refresh on opening.

mlmcc
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39156110
Well,   the whole report seem to display the new data, except this sub report which points to the PDF.
VU3LMG
0
 
LVL 1

Accepted Solution

by:
vu3lmg earned 0 total points
ID: 39187985
Could not find a solution to this problem.  
Decided to display that PDF as a seperate pop up then the report.
Will close the question
0
 
LVL 1

Author Closing Comment

by:vu3lmg
ID: 39363189
Could not find a solution to this problem.  
Decided to display that PDF as a seperate pop up then the report.
Will close the question
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fee for Crystal Reports Consulting 5 65
Sending HTML Formatted Email from ASP.NET 2 57
Shared Service Environment 2 54
Javascript function 3 22
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question