Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combinations Pin
James Towers28-Apr-10 14:29
James Towers28-Apr-10 14:29 
GeneralRe: Combinations Pin
PIEBALDconsult28-Apr-10 16:25
mvePIEBALDconsult28-Apr-10 16:25 
AnswerRe: Combinations Pin
Luc Pattyn28-Apr-10 14:45
sitebuilderLuc Pattyn28-Apr-10 14:45 
GeneralRe: Combinations Pin
James Towers28-Apr-10 15:20
James Towers28-Apr-10 15:20 
GeneralRe: Combinations Pin
Luc Pattyn28-Apr-10 15:28
sitebuilderLuc Pattyn28-Apr-10 15:28 
AnswerRe: Combinations Pin
PIEBALDconsult28-Apr-10 19:20
mvePIEBALDconsult28-Apr-10 19:20 
QuestionDisplay a PDF in a Windows C# program. Pin
jbradshaw28-Apr-10 10:57
jbradshaw28-Apr-10 10:57 
QuestionRe: Display a PDF in a Windows C# program. Pin
AspDotNetDev28-Apr-10 21:02
protectorAspDotNetDev28-Apr-10 21:02 
Just a thought...

jbradshaw wrote:
One we came up with was to convert the document to jpgs, one page per image, and then scroll through them. This works but the library I looked at (http://www.aspose.com/) is slow (about 2 seconds a page).


Is the PDF generated dynamically by software you don't control? Can you just create the JPEG's in advance (once, when you write the software), then display those and not have to worry about PDF's? And why does speed matter that much? Can't you just convert the PDF in advance (i.e., right before it's needed), then you'll have each page as a JPEG to scroll as you please? Also, any reason you chose JPEG? Do your PDF's contain natural type images (e.g., photography), or does it contain just text? If just text, PNG may be a more ideal format (lossless and compresses very well with computer generated images).

I did some Googling and came across ImageMagick, which apparently converts images and supports PDF as an input format (note that, for PDF's, it says it requires Ghostscript).

AnswerRe: Display a PDF in a Windows C# program. Pin
Kythen29-Apr-10 7:26
Kythen29-Apr-10 7:26 
GeneralRe: Display a PDF in a Windows C# program. Pin
jbradshaw30-Apr-10 7:45
jbradshaw30-Apr-10 7:45 
QuestionCross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13228-Apr-10 9:04
igalep13228-Apr-10 9:04 
AnswerRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
Not Active28-Apr-10 9:12
mentorNot Active28-Apr-10 9:12 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13228-Apr-10 9:25
igalep13228-Apr-10 9:25 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
Not Active28-Apr-10 9:40
mentorNot Active28-Apr-10 9:40 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13228-Apr-10 9:48
igalep13228-Apr-10 9:48 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
Not Active28-Apr-10 10:21
mentorNot Active28-Apr-10 10:21 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13228-Apr-10 10:26
igalep13228-Apr-10 10:26 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
Not Active28-Apr-10 11:21
mentorNot Active28-Apr-10 11:21 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13228-Apr-10 11:46
igalep13228-Apr-10 11:46 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13230-Apr-10 22:47
igalep13230-Apr-10 22:47 
AnswerRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
AspDotNetDev28-Apr-10 13:51
protectorAspDotNetDev28-Apr-10 13:51 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep13230-Apr-10 21:24
igalep13230-Apr-10 21:24 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
AspDotNetDev1-May-10 8:51
protectorAspDotNetDev1-May-10 8:51 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
igalep1321-May-10 9:49
igalep1321-May-10 9:49 
GeneralRe: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on repair doesnt work Pin
AspDotNetDev1-May-10 10:04
protectorAspDotNetDev1-May-10 10:04 

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.