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

Does prawn support output of PDF/X-1a or X3 compliant PDF's ? #877

Closed
IbnSaeed opened this issue May 18, 2015 · 7 comments
Closed

Does prawn support output of PDF/X-1a or X3 compliant PDF's ? #877

IbnSaeed opened this issue May 18, 2015 · 7 comments

Comments

@IbnSaeed
Copy link

Does prawn support output of PDF/X-1a or X3 compliant PDF's ?

here is some information on PDF/X

PDF/X
http://en.wikipedia.org/wiki/PDF/X

http://www.prepressure.com/pdf/basics/pdfx-1a

PDF/A
http://en.wikipedia.org/wiki/PDF/A

@packetmonkey
Copy link
Contributor

Prawn doesn't currently support kicking out anything other than a standard PDF. I would be happy to consider a PR to add support but that's probably a bit ambitious given the current state of the codebase. I don't believe we currently set the trim box or bleed box on our output PDFs nor do we have anything in place to prevent a user from adding an RGB image for example.

@fidothe
Copy link
Contributor

fidothe commented May 18, 2015

I had to write PDF/X PDFs out with Prawn and it was pretty straightforward, as long as you can control any images you're embedding - they need to be CMYK, and Prawn won't police that for you. I'll try and extract an example of that code into a Gist later on. The main differences between PDF/X and normal PDF are the TrimBox and BleedBox settings you need, plus some extra refs (OutputIntent, and embedding an ICC profile). Verbose, but not super tricky.

@packetmonkey
Copy link
Contributor

@fidothe neat! Really looking forward to that Gist. Maybe we can add some API's to make what you had to do more straightforward and possibly documented. I'll re-open this because it looks like there is a chance this can work :)

@packetmonkey packetmonkey reopened this May 18, 2015
@mojavelinux
Copy link
Contributor

I'll add that we're very interested in this feature for users of Asciidoctor PDF (based on Prawn) and would be willing to help implement and/or test. I'll be following the issue.

@fidothe
Copy link
Contributor

fidothe commented May 18, 2015

Here you go, everyone: https://gist.github.com/fidothe/32613b44a5b6588531d9

@fidothe
Copy link
Contributor

fidothe commented May 18, 2015

and for reference here, a collection of links to resources about pdf/x-the-format: https://pinboard.in/u:fidothe/t:pdfx

@packetmonkey
Copy link
Contributor

Thanks @fidothe !

I'm going to go ahead and re-close this issue as we don't natively support this still. However I think there is opportunity to implement a lot of what @fidothe did as native API's making doing similar work much easier.

There are some easier wins such as adding built in support for setting the trim and bleed boxes, OutputIntent's and allowing the overriding of the version strings.

I would be interested to hear from you @fidothe on what would have made this easier. There could possibly be a Prawn::PDFX/PDFA in the future.

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

No branches or pull requests

4 participants