pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malcolm Vincent <malcolmvinc...@gmail.com>
Subject Re: How can I get the coordinates of a bookmark corresponding to atitle
Date Thu, 14 Dec 2017 16:43:27 GMT
You can use PDFTextStripper to get the co-ordinates of every paragraph.

Identifying the paragraph you want could be tricky.

Cheers
Malcolm.





On 14 December 2017 at 16:39, Dan Liu <139250065@qq.com> wrote:

> Then how to get the coordinate of a catalog in text from the catalog in
> pdf metadata? And how to get the coordinate of paragraph in text?
>
>
> With best regards
> Daniel
>
>
>
> ------------------ Original ------------------
> From:  "Gilad Denneboom";<gilad.denneboom@gmail.com>;
> Date:  Thu, Dec 14, 2017 07:09 PM
> To:  "users"<users@pdfbox.apache.org>;
>
> Subject:  Re: How can I get the coordinates of a bookmark corresponding to
> atitle
>
>
>
> Bookmarks don't have coordinates. They are not elements on a page. A
> bookmark can *point *to a specific coordinate (or actually, a view state),
> though. You can inspect the bookmark's Action or Destination (notice there
> could be more than one, though, or none at all) to get that information.
>
> On Thu, Dec 14, 2017 at 4:15 AM, 张钧荣 <1024238683@qq.com> wrote:
>
> >
> >
> > 发送自 Windows 10 版邮件应用
> >
> >
> >
> > Hi!I want to get the coordinates of a bookmark corresponding to a
> > title.How can I get it?
> >
> > 发送自 Windows 10 版邮件应用
> >
> >
> >

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message