Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Problems using QuickPDF as the viewer |
Post Reply |
Author | |
kurumo
Beginner Joined: 26 Jan 06 Location: Cyprus Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 26 Jan 06 at 6:22PM |
Hello.
I'm testing QuickPDF for the means of using it as the pdf-viewer for our app. Playing around with ActiveX version I've already got a couple of bugs like: 1. One of my pdf file just doesn't render. QuickPDF loads it, RenderDocumentToFile says that everything is great but the resulting images are empty. Strange. 2. Rendering pdfs with big images inside I've got the full-scale copy of these images in the work dir - seems like QuickPDF saves them there first before rescaling and never removes these files. Looking around the forum I've noticed the couple of other problems with QuickPDF's rendering. So the general question here is - is it the good idea at all to use QuickPDF as the viewer? Or it's primary objective is to create pdfs and not to view them? And if it's not got for that purpose - can anyone recommend anything else? I've already found some good words about Foxit SDK here so I'm going to try it too but maybe there's something else? I do not need to create PDFs, I need only to view them. |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
Adobe has published the specs for the COM interface to Reader starting with version 7. It's pretty easy to integrate, renders very fast and accurately, and of course supports all features of Reader.
Your end users need to have Reader 7 installed for it to work. See Adobe's IACReference PDF for details... Edited by chicks |
|
kurumo
Beginner Joined: 26 Jan 06 Location: Cyprus Status: Offline Points: 2 |
Post Options
Thanks(0)
|
But I need to be able to view pdfs without requiring users to install Adobe's Reader, that's why I'm looking for another solution.
|
|
DELBEKE
Debenu Quick PDF Library Expert Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
Post Options
Thanks(0)
|
FoxIt SDK is good at rendering the Pdf. It is very expensive and it just do the rendering on a device context. You can also try tu use QuickPdf with GhostScript. I Found the results are better than with QuickPdf alone. function GhostScriptInit(DLLFileName As String) As Long function GhostScriptGetPagePreview(InputFileName As String,
Edited by DELBEKE |
|
dsola
Team Player Joined: 28 Oct 05 Location: Croatia Status: Offline Points: 34 |
Post Options
Thanks(0)
|
I don't see reason why wouldn't you require from your users to install Adobe Reader ?
If they install it you have no problem now or in future. They need it for reading PDF's outside your PDF. |
|
registered QuickPDF user
|
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi chicks Are you sure, that just the Adobe Reader (which is free) is necessary and not the Adobe Acrobat Standard or the Adobe Acrobat Professional? When I was searching the web for a library with a certain set of features for a reasonable price, I found iSEDQuickPDF which should be able to do everything I needed. For some of my wanted features, I'm sure that the Adobe Reader wouldn't suffice. If it really can be used, it could at least be an alternative for the Render functions of iSEDQuickPDF. I took a look at IACReference.pdf but I'm not sure what would be necessary to display a page. Is it possible for you, to give more hints or even some sample code? Best Regards Edited by Pirmin |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
100% sure, I embed Reader 7 in one of my applications.
Here's an example (C++): http://www.codeproject.com/miscctrl/acroview.asp If you're using VB, the interface name is AcroPDF.PDF.1 In Adobe's IACReference, it's referred to as AxAcroPDFLib.AxAcroPDF Note that you can embed Reader for viewing and printing, and everything else Reader can do, but you can't save data typed into form fields with it to the local PC, unless the form has been "enabled" by Adobe's (expensive) software. |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
Here's a quick VB6 example:
ViewPDF.frm: -------------------------------------------------------- VERSION 5.00 Object = "{05BFD3F1-6319-4F30-B752-C7A22889BCC4}#1.0#0"; "AcroPDF.dll" Begin VB.Form Form1 Caption = "Form1" ClientHeight = 7380 ClientLeft = 60 ClientTop = 345 ClientWidth = 10335 LinkTopic = "Form1" ScaleHeight = 7380 ScaleWidth = 10335 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command1 Caption = "&Load" Height = 375 Left = 3720 TabIndex = 1 Top = 6840 Width = 1695 End Begin AcroPDFLibCtl.AcroPDF AcroPDF1 Height = 5775 Left = 480 TabIndex = 0 Top = 360 Width = 9735 _cx = 17171 _cy = 10186 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() AcroPDF1.LoadFile ("c:\temp\f1040ez.pdf") End Sub ----------------------------------------------- ViewPDF.vpb: ----------------------------------------------- Type=Exe Form=ViewPDF.frm Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\WINNT\system32\stdole2.tlb#OLE Automation Object={05BFD3F1-6319-4F30-B752-C7A22889BCC4}#1.0#0; AcroPDF.dll Startup="Form1" Command32="" Name="Project1" HelpContextID="0" CompatibleMode="0" MajorVer=1 MinorVer=0 RevisionVer=0 AutoIncrementVer=0 ServerSupportFiles=0 VersionCompanyName="x" CompilationType=0 OptimizationType=0 FavorPentiumPro(tm)=0 CodeViewDebugInfo=0 NoAliasing=0 BoundsCheck=0 OverflowCheck=0 FlPointCheck=0 FDIVCheck=0 UnroundedFP=0 StartMode=0 Unattended=0 Retained=0 ThreadPerObject=0 MaxNumberOfThreads=1 [MS Transaction Server] AutoRefresh=1 Edited by chicks |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi chicks Thank's a lot for your quick answers. I downloaded the sample project and had a look at the code above. The viewer in the picture (from your URL) looks very like an instance of the Adobe Reader.
Don't hurry with your answer. I can't look at it before next week. Best Regards |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
No, it's strictly for viewing and printing PDF files. You can't use it to modify the files in any way, and it doesn't fire any events back to the embedding app (though I suppose you might capture its messages through subclassing).
See the IACReference for things like setting which features are visible, how to print, etc. If you want modification capabilities, you need full Acrobat ( or QuickPDF ). See my FormTool here for an example of a viewer (and form filler) using QuickPDF, subject to its limitations with rendering speed and accuracy: http://www.geocities.com/sea_sbs/files/FormTool.zip |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi chicks Thanks a lot for your tipps and the sample. I think it will be useful for me. Best Regards
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store