Skip to content

Commit

Permalink
Allow negative values in PDF bounding boxes (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Nov 5, 2024
1 parent 68741e3 commit 0c91eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/pdf_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function get_pdf_bbox(path::String)
println(read(err, String))
error()
end
bbox_match = match(r"%%BoundingBox: ([0-9.]+) ([0-9.]+) ([0-9.]+) ([0-9.]+)", result)
bbox_match = match(r"%%BoundingBox: ([-0-9.]+) ([-0-9.]+) ([-0-9.]+) ([-0-9.]+)", result)
return parse.(Int, (
bbox_match.captures[1],
bbox_match.captures[2],
Expand Down

0 comments on commit 0c91eeb

Please sign in to comment.