AdobePdf (.adobepdf)
.adobepdf file signature | application/octet-stream
Magic Bytes
Offset 0
25 21 50 53 2D 41 64 6F 62 65 2D 2E 20 50 44 46 2D 2E
Sources: Neil Harvey FileSignatures
Extension
.adobepdf
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .adobepdf files in Python
def is_adobepdf(file_path: str) -> bool:
"""Check if file is a valid ADOBEPDF by magic bytes."""
signature = bytes([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x2E, 0x20, 0x50, 0x44, 0x46, 0x2D, 0x2E])
with open(file_path, "rb") as f:
return f.read(18) == signature
How to validate .adobepdf files in Node.js
function isADOBEPDF(buffer: Buffer): boolean {
const signature = Buffer.from([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x2E, 0x20, 0x50, 0x44, 0x46, 0x2D, 0x2E]);
return buffer.subarray(0, 18).equals(signature);
}
How to validate .adobepdf files in Go
func IsADOBEPDF(data []byte) bool {
signature := []byte{0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x2E, 0x20, 0x50, 0x44, 0x46, 0x2D, 0x2E}
if len(data) < 18 {
return false
}
return bytes.Equal(data[:18], signature)
}
API Endpoint
/api/v1/adobepdf
curl https://filesignature.org/api/v1/adobepdf
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .adobepdf file?
A .adobepdf file is a AdobePdf file.
What are the magic bytes for .adobepdf files?
The magic bytes for AdobePdf files are 25 21 50 53 2D 41 64 6F 62 65 2D 2E 20 50 44 46 2D 2E at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .adobepdf file?
To validate a .adobepdf file, read the first bytes of the file and compare them against the known magic bytes (25 21 50 53 2D 41 64 6F 62 65 2D 2E 20 50 44 46 2D 2E) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .adobepdf files?
There is no officially registered MIME type for .adobepdf files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .adobepdf files?
AdobePdf (.adobepdf) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.