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 - 4x6 Label not rotating or sized right
  FAQ FAQ  Forum Search   Register Register  Login Login

4x6 Label not rotating or sized right

 Post Reply Post Reply
Author
Message
smith288 View Drop Down
Beginner
Beginner


Joined: 02 Mar 11
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote smith288 Quote  Post ReplyReply Direct Link To This Post Topic: 4x6 Label not rotating or sized right
    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


Edited by Ingo - 08 Mar 11 at 6:19PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
smith288 View Drop Down
Beginner
Beginner


Joined: 02 Mar 11
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote smith288 Quote  Post ReplyReply Direct Link To This Post 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.  :)
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