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 - Margins:  Need more detail
  FAQ FAQ  Forum Search   Register Register  Login Login

Margins: Need more detail

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


Joined: 12 Oct 10
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedOctober Quote  Post ReplyReply Direct Link To This Post Topic: Margins: Need more detail
    Posted: 11 Feb 11 at 9:12PM
I am using QuickPDF Library 7.23 on Delphi 7, XP.  I have a PDF file of a label that I need to print, programatically, without Adobe installed.    The label size is 3 inch wide by 1 inch high, and I'm using a Zebra LP 2844 to print the label.  I've created the label, with proper margins, in a different program specifically made for the purpose, and saved it as .Pdf.  When I open the file in Adobe, and print it, it prints perfectly.  However when I use QuickPDF, QuickPDF adds it's own margins (about 0.75 inch left and right, and about quarter inch top, zero bottom.  Using Quick PDF with the large margins, there's little room left in the center for the text on the label, so it word wraps.

I have read your other post about margins, where you tell about
http://www.quickpdflibrary.com/help/quickpdf/PageLayout.php and look at the SetPageDimensions and about layers and stuff.  This does me no good.  What are the parameter units in SetPageDimensions?  Inches?  Pixels?  Points?  Also, what functions, exactly, and how, should I use them to get rid of these unwanted margins?

Here is what I'm doing.. maybe you can tell me what I'm doing wrong:

Assume:      
...
qwk_pdf: TQuickPDF0723;
pdf_fnm: String;
...
    qwk_pdf := TQuickPDF0723.Create;
    if not UnlockedOK(qwk_pdf) then
...
  pdf_fnm := 'C:\_temp\my.pdf';
...


    qwk_pdf.LoadFromFile(pdf_fnm);
    qwk_pdf.PrintDocument(Printer.Printers[Printer.PrinterIndex], 1, 1, qwk_pdf.PrintOptions(0, 0, 'My Label'));

(Result:  Prints the label with a large three quarter inch left and right margin s and a one quarter inch top margin).

I know for a fact that the large left and right margins are not in the .Pdf file.  When I made the file, I set the margins to zero, and in Adobe, the margins are as I had created them.  QuickPDF is adding the margins on it's own.

Can you be more specific in your answer about margins, giving me a code snippet that includes the exact functions, with parameters that  I need to to this?  Thanks.  My project is stuck until I get an answer.





Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 11 Feb 11 at 9:18PM
Hi!

To your question "...What are the parameter units...":
You can get PSUnits (or points), inches and millimeters. It's your choice:
http://www.quickpdflibrary.com/help/quickpdf/SetMeasurementUnits.php

Cheers, Ingo

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