Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't check for presence of BleedBox #34

Open
dhad1955 opened this issue Feb 11, 2020 · 1 comment
Open

Can't check for presence of BleedBox #34

dhad1955 opened this issue Feb 11, 2020 · 1 comment

Comments

@dhad1955
Copy link

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?

@yob
Copy link
Owner

yob commented Feb 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants