Detects whether buf contains a PDF document by verifying the %PDF magic bytes at offset 0.
buf
%PDF
The binary buffer to inspect.
true if the buffer starts with a valid PDF signature.
true
Detects whether
bufcontains a PDF document by verifying the%PDFmagic bytes at offset 0.