fluidasserts.format.pdf module

This module allows to check PDF vulnerabilities.

fluidasserts.format.pdf.has_author(filename)

Check if author attribute is present.

Parameters

filename (str) – Path to the PDF file.

Return type

bool

fluidasserts.format.pdf.has_creator(filename)

Check if creator attribute is present.

Parameters

filename (str) – Path to the PDF file.

Return type

bool

fluidasserts.format.pdf.has_producer(filename)

Check if producer attribute is present.

Parameters

filename (str) – Path to the PDF file.

Return type

bool