Print Page | Close Window

Viewing PDF files in the screen

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2112
Printed Date: 13 Aug 25 at 12:35AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Viewing PDF files in the screen
Posted By: capora56
Subject: Viewing PDF files in the screen
Date Posted: 25 Jan 12 at 11:55AM
Hi

Some years ago I studied the QuickPDFDLL0718.dll for processing pdf file and in this moment the printing of this files generated with a scanner was not supported because of the graphics formats inside the PDF.

I think that this problem is resolved with the actual version. On the other hand, today I need to know if I can open and view in the screen a pdf file genearated with a scanner. I'm working with Clarion 6.3 EE. My application needs to open for consulting pdf files rather than print them.

If it's possible, which are the neccesary funcions to use for doing this.

Thanks 

Ruben Caporossi



Replies:
Posted By: AndrewC
Date Posted: 26 Jan 12 at 8:12AM

Here is some C# code that renders an image to a Bitmap and then that bitmap is assigned to a pictureBox control on screen.

There are various RenderPageTo..  type functions and different output formats.

Andrew.

        private void RenderPageToDC_Click(object sender, EventArgs e)
        {
            Bitmap b = new Bitmap((int)pictureBox1.Width, (int)pictureBox1.Height);
            using (Graphics g = Graphics.FromImage(b))
            {
                IntPtr dc = g.GetHdc();
                QP.RenderPageToDC(72, page, dc);
                g.ReleaseHdc(dc);

                pictureBox1.Image = b;
            }
        }
  



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk