Print Page | Close Window

4x6 Label not rotating or sized right

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=1761
Printed Date: 18 May 24 at 12:08PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: 4x6 Label not rotating or sized right
Posted By: smith288
Subject: 4x6 Label not rotating or sized right
Date Posted: 08 Mar 11 at 3:15PM
0

I have a PDF that is set as a 4x6in document meant for thermal 2844 zebra printers. Opening up the document in Foxit or Acrobat and printing it works fine to this printer but using QuickPDF, it just makes it real small (almost like a 2x3 or something).

I can't force size this as we will be printing PDF to any number of printers, laser and thermals... Any idea if im missing something?

Here's my code

        Dim pdfData As Byte() = CType(arg, PrintArguments).LabelImage()
       
Dim sPrinterName As String = CType(arg, PrintArguments).PrinterName()
       
Dim sPFDFile As String = CType(arg, PrintArguments).FilePath()

        QP
= New QuickPDFDLL0723.PDFLibrary("QuickPDFDLL0723.dll")

       
If QP.UnlockKey("my_reg_key") = 1 Then

           
Dim pdfStream = New MemoryStream()

            pdfStream
.Write(pdfData, 0, pdfData.Length)

           
Dim DocumentID As Integer = QP.LoadFromString(pdfData)

           
If DocumentID > 0 Then
               
Dim OptionsID As Integer = QP.PrintOptions(2, 1, "Document")
                QP
.PrintDocument(sPrinterName, 1, QP.PageCount, OptionsID)

                QP
.RemoveDocument(DocumentID)

           
End If
       
End If



Replies:
Posted By: Ingo
Date Posted: 08 Mar 11 at 6:24PM
Hi Smith!

Please read here about the parameters/properties:
http://www.quickpdflibrary.com/help/quickpdf/PrintOptions.php
Why you're using "2" for "page scaling"?
Try it with "0"...

Cheers and welcome here,
Ingo



Posted By: smith288
Date Posted: 08 Mar 11 at 6:29PM
Sorry about the key.  Trial key but still...should have left it out.

Anyways, I think i figured it out.  Im using a windows service to spit out PDFs and the service is using a Login user to impersonate which if I would log into that user, had the printer settings at 2x3 rather than 4x6.  

So basically, it was working.  My weird setup was causing the problems.

Thanks though.  :)



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