Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pdfinfo.match(/CropBox:#{boxre}/)[1,4].map{|i| i.to_i}
- lines = pdfinfo.match_crop_box(boxre,1,4)
- def match_crop_box(boxre,i,x)
- lines = @pdfinfo.match(/CropBox:#{boxre})
- lines[i,x].map &:to_i
- end
Add Comment
Please, Sign In to add comment