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 - Read Textbox Alignment from pdf?
  FAQ FAQ  Forum Search   Register Register  Login Login

Read Textbox Alignment from pdf?

 Post Reply Post Reply
Author
Message
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post Topic: Read Textbox Alignment from pdf?
    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
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: 27 Mar 19 at 9:05PM
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

Back to Top
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post Posted: 28 Mar 19 at 5:37AM
thank you!
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