Print Page | Close Window

difference between DrawText and Printer.Print

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=2084
Printed Date: 27 Jan 26 at 2:04PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: difference between DrawText and Printer.Print
Posted By: Cuspide
Subject: difference between DrawText and Printer.Print
Date Posted: 28 Dec 11 at 3:07PM
Hi all,
i'm sorry for the silly question.

IDE: VB6

I am printing a file of 30 lines.

printing with Printer.Print I get a file in the spool of 25,3KB

printing with quickPdf I get a file in the spool of 169 Kb

My setting are:

    Set oPdf = New PDFLibrary
    If oPdf.UnlockKey(LICENSEKEY) = False Then
        Exit Function
    End If
    
    Call oPdf.NewDocument
    Call objPdf.SetPageSize(IIf(pPdfPage.bOrizzontale, "A4 Landscape", "A4"))
    Call objPdf.SetOrigin(1)
    Call objPdf.SetMeasurementUnits(1)
    Call objPdf.AddStandardFont(pPdfPage.iFontName)
    Call objPdf.SetTextSize(pPdfPage.dSize)
    
and I have sostitute the old Printer.Print this procedure:

Public Sub gPdfRiga(ByVal pText As String)
Static yPos As Double

    If PRN_CTR = 0 Then
        yPos = 0
    End If

    yPos = yPos + CDbl(oPdf.GetTextHeight)
    Call oPdf.DrawText(7, yPos, pText)
    PRN_CTR = PRN_CTR + 1
    
End Sub

you're doing something wrong? or the file must be of such size?

thanks to all.
Daniele



Replies:
Posted By: AndrewC
Date Posted: 02 Jan 12 at 11:57AM

Currently with Quick PDF Library, when you print the PDF, the file is converted to a bitmap image before being sent to the printer and this is why the spool file is so large.

We are looking into options to improve the spool file size but this won't happen until after 8.14 is released.




Posted By: Cuspide
Date Posted: 11 Jan 12 at 9:31AM
Perfect.
So will wait for the release of >= 8.14

Tnank You Andrew.
Daniele


Posted By: Cuspide
Date Posted: 28 May 12 at 7:56AM
Hi Andrew,
news for this problem?

Thank you.
Daniele



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