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!
![]() |
Get margin size help |
Post Reply
|
| Author | |
BGJ223
Beginner
Joined: 03 Oct 13 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Get margin size helpPosted: 03 Oct 13 at 5:22PM |
|
Hi I am trying to get margin size for several PDF files. Basically I want to know which files have a margin size smaller/larger than 1/4 inch.
I am trying to do this in VB script, but I need some help finding the correct function and syntax to make this work. Thanks
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 Oct 13 at 9:24AM |
|
PDF Files technically do not have margins, paragraphs, lines of text. It is build like a jigsaw puzzle where each bit of text is put down onto the page 1 character / line / image etc at a time. One way you might be able to achieve what you want is to load the PDF, render it to a BMP format and then scan the BMP to locate the first row / column that contains a pixel that is not white. Repeat that for all four sides then you might have the margin values you are looking for. Andrew.
|
|
![]() |
|
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