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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - difference between DrawText and Printer.Print
  FAQ FAQ  Forum Search   Register Register  Login Login

difference between DrawText and Printer.Print

 Post Reply Post Reply
Author
Message
Cuspide View Drop Down
Team Player
Team Player


Joined: 25 May 10
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cuspide Quote  Post ReplyReply Direct Link To This Post Topic: difference between DrawText and Printer.Print
    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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
Cuspide View Drop Down
Team Player
Team Player


Joined: 25 May 10
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cuspide Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jan 12 at 9:31AM
Perfect.
So will wait for the release of >= 8.14

Tnank You Andrew.
Daniele
Back to Top
Cuspide View Drop Down
Team Player
Team Player


Joined: 25 May 10
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cuspide Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 12 at 7:56AM
Hi Andrew,
news for this problem?

Thank you.
Daniele
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store