pdf-preflight icon indicating copy to clipboard operation
pdf-preflight copied to clipboard

Can't check for presence of BleedBox

Open dhad1955 opened this issue 5 years ago • 1 comments

So I have the following code

rule Preflight::Rules::BoxPresence, :any => [:BleedBox]

After checking against a pdf that has a BleedBox present I'm receiving the following error

[#<Preflight::Issue:0x007f863e85be40 @description="page must have any of BleedBox", @rule=:"Preflight::Rules::BoxPresence", @attributes={:page=>1}>]

However, upon closer inspection to the box_presence.rb file I can see BleedBox is not included in the checks

present_boxes = dict.keys & [:MediaBox, :CropBox, :TrimBox, :ArtBox]

Is this on purpose?

dhad1955 avatar Feb 11 '20 19:02 dhad1955

Is this on purpose?

Good question! it's been so long since I looked at this code, I couldn't tell you.

It seems reasonable to add it though - I'll happily merge a PR if you open one

yob avatar Feb 12 '20 12:02 yob