Guest User

Untitled

a guest
Nov 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. pdfinfo.match(/CropBox:#{boxre}/)[1,4].map{|i| i.to_i}
  2.  
  3. lines = pdfinfo.match_crop_box(boxre,1,4)
  4.  
  5. def match_crop_box(boxre,i,x)
  6. lines = @pdfinfo.match(/CropBox:#{boxre})
  7. lines[i,x].map &:to_i
  8. end
Add Comment
Please, Sign In to add comment