Print Page | Close Window

false placement on DrawBarcode

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=3481
Printed Date: 29 Apr 24 at 6:04PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: false placement on DrawBarcode
Posted By: Karsten
Subject: false placement on DrawBarcode
Date 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



Replies:
Posted By: Ingo
Date 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



Posted By: Karsten
Date Posted: 01 Jul 17 at 3:02PM
Hi Ingo,

PageRotation();

get the same value for both documents

Karsten


Posted By: Karsten
Date Posted: 01 Jul 17 at 3:08PM
Hi Ingo,

the solution

mqp.NormalizePage(0);

Karsten



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