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!
Determining empty region in a PDF for barcode plac |
Post Reply |
Author | |
Bernd
Beginner Joined: 23 Aug 18 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 23 Aug 18 at 7:44PM |
Is there a practical method to determine an empty region in a PDF in order to place a QR Code programmatically? Thank you for your help! |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(1)
|
Personally, since I deal regularly with PDF to bi-level bitmap conversion, I would simply render the PDF to a single-bit-per-pixel BMP and walk through the scan lines looking for runs of bytes containing 0xff values. But that is a messy solution, especially if you do not have the tools to hand, or do not have familiarity with twiddling bitmap bits at a low level. And it also does not help if your definition of 'empty' embraces a 'light gray' block as well as plain white, unless you have available a "nearest to black/white" dithering algorithm. So it is practical for me, but might not be for you. But I would demand a high fee if someone asked me to code a tedious task like this anyway!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store