0

I want to match everything starting from the line /Subtype /Widget until the line <<

With this code nothing is matched

preg_match('#/Subtype /Widget([.\s]*)<<#', $pdf, $matches);

subject

522 0 obj 
<<
/Subtype /Widget
/V (some text)
/T (Kreditor)
/Rect [54.6 359.16 296.4 531.84]
/P 414 0 R
/DA (/Helv 8 Tf 0 g)
/Ff 8392704
/Type /Annot
/F 4
/TU (Kreditor:)
/AP 
<<
/N 534 0 R
clarkk
  • 25,706
  • 67
  • 182
  • 315

0 Answers0