Skip to content

Commit

Permalink
Allow negative values in PDF bounding boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Oct 30, 2024
1 parent 68741e3 commit ea8ff73
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 ea8ff73

Please sign in to comment.