我想匹配从/Subtype /Widget
行到<<
行的所有内容
使用此代码无法匹配
preg_match('#/Subtype /Widget([.\s]*)<<#', $pdf, $matches);
主题
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