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 - false placement on DrawBarcode
  FAQ FAQ  Forum Search   Register Register  Login Login

false placement on DrawBarcode

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


Joined: 27 Apr 09
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Karsten Quote  Post ReplyReply Direct Link To This Post Topic: false placement on DrawBarcode
    Posted: 30 Jun 17 at 8:45PM
Hi,

I used the same code for place an barcode on pdf, but the result is not the same. On one pdf the barcode is placed on the wrong position and with the wrong size.

Where is my mistake?

Here is the code:
PDFLibrary mqp = new PDFLibrary(@"DebenuPDFLibrary64DLL1311.dll");
mqp.UnlockKey(qplicense);
mqp.SetMeasurementUnits(1);
mqp.SetOrigin(1);
mqp.SetPDFAMode(2);
mqp.DrawBarcode(x - 15 , y - 6, 30, 15, "00154237", 5, 0);
mqp.SaveToFile("temp.pdf");

The only different that I can find is, one pdf is 1.3 and the second is 1.4.

Regards
Karsten
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: 01 Jul 17 at 12:46PM
Hi Karsten,

one pdf will be rotated and the other one will not.
You put the barcode at a special place and then the internal rotation works before showing the pdf.

http://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php

Cheers,
Ingo

Back to Top
Karsten View Drop Down
Beginner
Beginner


Joined: 27 Apr 09
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Karsten Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jul 17 at 3:02PM
Hi Ingo,

PageRotation();

get the same value for both documents

Karsten
Back to Top
Karsten View Drop Down
Beginner
Beginner


Joined: 27 Apr 09
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Karsten Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jul 17 at 3:08PM
Hi Ingo,

the solution

mqp.NormalizePage(0);

Karsten
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