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!
Read Textbox Alignment from pdf? |
Post Reply |
Author | |
sko
Team Player Joined: 13 Feb 19 Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 27 Mar 19 at 11:14AM |
Hi,
i can read formfields with for i := 1 to PDFLibrary.FormFieldCount do begin x := PDFLibrary.GetFormFieldBound(i, 0); y := PDFLibrary.GetFormFieldBound(i, 1); w := PDFLibrary.GetFormFieldBound(i, 2); h := PDFLibrary.GetFormFieldBound(i, 3); s := PDFLibrary.GetFormFieldTextSize(i); a := PDFLibrary.GetFormFieldAlignment(i); ... and i get also the alignment of this field in a. now i want to read textblocks (written with align center or right) for f := 1 to PDFLibrary.GetTextBlockCount(id) do begin s := PDFLibrary.GetTextBlockFontSize(id, f); fn := PDFLibrary.GetTextBlockFontName(id, f); for j := 1 to 8 do begin box[j] := PDFLibrary.GetTextBlockBound(id, f, j); end; but here are all textblocks minimized to there content, i can't get the original size and alignment! Is there a way to do it? Ciao Stefan
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Stefan,
you won't get a value for a block-align 'cause inside the block different aligns are possible i think. In this sample you'll see what'spossible: https://www.debenu.com/kb/extract-text-from-pdfs-as-a-text-block-list/ |
|
Cheers,
Ingo |
|
sko
Team Player Joined: 13 Feb 19 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
thank you!
|
|
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