Skip to content

Add --query-bbox to CLI - #1050

Merged
LaurenzV merged 2 commits into
linebender:mainfrom
emersion:doc-query-bbox
Oct 8, 2026
Merged

LaurenzV merged 2 commits into
linebender:mainfrom
emersion:doc-query-bbox

Conversation

@emersion

Copy link
Copy Markdown
Contributor

Queries the document bounding box. This can be useful from scripts, e.g. to crop the image without rasterizing it.

@emersion

emersion commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Gentle ping, if you have time please review :)

@LaurenzV

LaurenzV commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Maybe we just change query_all so that all nodes are printed, even the ones without node ID? Then you could simply filter the first entry from the output, and we don't need to add a new flag for this.

@emersion

Copy link
Copy Markdown
Contributor Author

Hm, sounds like this could get quite verbose for documents with a lot of elements… Nonetheless, I've opened #1100 which does this.

@LaurenzV

LaurenzV commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Okay thanks, I'll think about this again.

emersion and others added 2 commits October 8, 2026 20:09
Queries the document bounding box. This can be useful from scripts,
e.g. to crop the image without rasterizing it.
@LaurenzV

LaurenzV commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

I have decided to just go with this implementation, thanks for doing the other one as well, though. And sorry about the delay.

@LaurenzV LaurenzV changed the title Add --query-bbox Add --query-bbox to CLI Oct 8, 2026
@LaurenzV
LaurenzV merged commit e5bcf8a into linebender:main Oct 8, 2026
5 checks passed
@emersion

emersion commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Thank you!

@emersion
emersion deleted the doc-query-bbox branch October 8, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants