Skip to content

How do I get location of a certain block in PDF? #1275

Answered by pointlessone
shubhamdrip asked this question in Q&A
Discussion options

You must be logged in to vote

Prawn doesn't provide anything for that. Prawn is concerned with generation of PDF and doesn't have any API to inspect the content.

That said, there's pdf-inspector gem that does specifically that. PDF is not very good at providing metadata to identify a specific rectangle but maybe you'll have some luck with the gem.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shubhamdrip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants