|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Apache FOP: Trimbox, Bleedbox, Crop marksHi there
Is there a way to define the trimbox, the bleedbox and maybe also corp marks by generating a pdf over xsl:fo using apache fop 0.94? I saw there is a way to do it with e.g. AntennaHouse, isn't it? So, do I have to change to AntennaHouse, or is there also a way to do it with apache fop? Great thanks & Kind regards, Oliver Hirschi --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Apache FOP: Trimbox, Bleedbox, Crop marksIt's not available in FOP, yet. I have once started support for the bleed
box (as an experiment) but since this is very low priority for me I haven't finished, yet. If you have some Java knowledge it would be an ideal opportunity to contribute something back to FOP. I can give hints and pointers into the code to get you started. On 02.04.2008 10:34:36 Oliver Hirschi wrote: > Hi there > > Is there a way to define the trimbox, the bleedbox and maybe also corp > marks by generating a pdf over xsl:fo using apache fop 0.94? > > I saw there is a way to do it with e.g. AntennaHouse, isn't it? > So, do I have to change to AntennaHouse, or is there also a way to do > it with apache fop? > > Great thanks & Kind regards, > Oliver Hirschi Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Apache FOP: Trimbox, Bleedbox, Crop marksThanks for your answer at first
What do you think, how much effort (in man-day) is used for initial skill adaptation training in fop-code and writing the expansion for supporting trim-, bleed-box and crop-marks? by-the-way: Ech glaub eigentlech chönntemer üs im lozärner dialäkt onderhalte...http://www.FamilyHirschi.ch :-) Gruss, Oliver Hirschi > "Jeremias Maerki" <dev@...> schrieb im Newsbeitrag > > news:20080402104956.2BAE.DEV@...... > It's not available in FOP, yet. I have once started support for the > bleed > box (as an experiment) but since this is very low priority for me I > haven't finished, yet. If you have some Java knowledge it would be an > ideal opportunity to contribute something back to FOP. I can give > hints and pointers into the code to get you started. > > On 02.04.2008 10:34:36 Oliver Hirschi wrote: > > Hi there > > > > Is there a way to define the trimbox, the bleedbox and maybe also > > corp > > marks by generating a pdf over xsl:fo using apache fop 0.94? > > > > I saw there is a way to do it with e.g. AntennaHouse, isn't it? > > So, do I have to change to AntennaHouse, or is there also a way to > > do > > it with apache fop? > > > > Great thanks & Kind regards, > > Oliver Hirschi > > > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Apache FOP: Trimbox, Bleedbox, Crop marksOn 07.04.2008 07:55:42 Oliver Hirschi wrote: > Thanks for your answer at first > > What do you think, how much effort (in man-day) is used for initial > skill adaptation training in fop-code and writing the expansion for > supporting trim-, bleed-box and crop-marks? It depends how these elaborate those crop-marks should be. The necessary extension code is easy. The painting of the crop-marks should probably be as renderer-independent as possible (so it can be reused by other renderers). So it should probably be implemented using Java2D/Graphics2D (see AbstractRenderer.getGraphics2DAdapter()). But that shouldn't take too long, either. I guess with all testing and some documentation, not more than 2 or 3 days. As already mentioned I have the beginnings of a patch for bleed box which could serve as a starting point. Unfortunately, I don't have it with me here in Amsterdam this week. > by-the-way: Ech glaub eigentlech chönntemer üs im lozärner dialäkt > onderhalte...http://www.FamilyHirschi.ch :-) Stemmt, aber d'Lüüt do händ ned so Fröid, wenn's müend Schwiizerdüütsch läse. (For non-Swiss: the above is Swiss German which is normally not written down, just spoken. You haven't missed any important content. hehe.) > Gruss, Oliver Hirschi > > > "Jeremias Maerki" <dev@...> schrieb im Newsbeitrag > > > news:20080402104956.2BAE.DEV@...... > > It's not available in FOP, yet. I have once started support for the > > bleed > > box (as an experiment) but since this is very low priority for me I > > haven't finished, yet. If you have some Java knowledge it would be an > > ideal opportunity to contribute something back to FOP. I can give > > hints and pointers into the code to get you started. > > > > On 02.04.2008 10:34:36 Oliver Hirschi wrote: > > > Hi there > > > > > > Is there a way to define the trimbox, the bleedbox and maybe also > > > corp > > > marks by generating a pdf over xsl:fo using apache fop 0.94? > > > > > > I saw there is a way to do it with e.g. AntennaHouse, isn't it? > > > So, do I have to change to AntennaHouse, or is there also a way to > > > do > > > it with apache fop? > > > > > > Great thanks & Kind regards, > > > Oliver Hirschi > > > > > > Jeremias Maerki > > > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Apache FOP: Trimbox, Bleedbox, Crop marks"Jeremias Maerki" <dev@...> schrieb im Newsbeitrag
news:20080407151621.2993.60BA733C@...... > On 07.04.2008 07:55:42 Oliver Hirschi wrote: > > Thanks for your answer at first > > > > What do you think, how much effort (in man-day) is used for initial > > skill adaptation training in fop-code and writing the expansion for > > supporting trim-, bleed-box and crop-marks? > > It depends how these elaborate those crop-marks should be. The > necessary > extension code is easy. The painting of the crop-marks should > probably > be as renderer-independent as possible (so it can be reused by other > renderers). So it should probably be implemented using > Java2D/Graphics2D > (see AbstractRenderer.getGraphics2DAdapter()). But that shouldn't > take > too long, either. I guess with all testing and some documentation, > not > more than 2 or 3 days. As already mentioned I have the beginnings of > a > patch for bleed box which could serve as a starting point. > Unfortunately, > I don't have it with me here in Amsterdam this week. > I talked here in our team about the implementation of the trimbox an crop-marks functionality in FOP. I think I can and will make the needed implementation for that in the future. Directly now, I have not the time to do that, so I will contact you (Jeremias) as soon as I have time to do it. Then we can talk about, if we have to meet us for the first hints and pointers you can give it to me. @Jeremias: Did you see my posting "Apache FOP: Different Problems with embedding PDFs" from 10.04.2008? Point 5 is solved with installing "JAI Image I/O Tools", but the other??? Mainly the first point - Is it a known bug, or did I make a mistake? I wish to all of you a beautiful start of the week... Thanks & regards, Oliver Hirschi --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Apache FOP: Trimbox, Bleedbox, Crop marksI was looking for PDF TrimBox and FOP and found your thread. Excellent to see this is getting implemented. What's the schedule for this feature? Any progress so far?
BTW, I have patched the old 0.20.5 to support PDF TrimBox like this: - accept "-trimboxPadding=##mm" param from command line - check for "trimboxPadding" in Configuration - generate TrimBox per page: [ (tp) (tp) (width - tp), (height - tp) ] Very crudely, this is the important part in PDFPage.toPDF(), after "/MediaBox": //DA Custom: TrimBox try { String trimboxPaddingSt = Configuration.getStringValue("trimboxPadding", Configuration.PDF); if (trimboxPaddingSt != null && !"".equals(trimboxPaddingSt)) { if (trimboxPaddingSt.endsWith("mm")) { float trimboxPaddingFloat = Float.parseFloat(trimboxPaddingSt.substring(0, trimboxPaddingSt.length() - 2)); long trimboxPadding = Math.round(trimboxPaddingFloat * 2.83464567); sb.append("/TrimBox [ " + trimboxPadding + " " + trimboxPadding + " " + (this.pagewidth - trimboxPadding) + " " + (this.pageheight - trimboxPadding) + " ]\n"); } else { throw new Exception("Invalid trimboxPadding. Value must be given in mm (##.##mm)"); } } } catch (Exception e) { e.printStackTrace(); } for the crop marks, I'm drawing them as borders to fo:block-container with position="absolute", so handling it in the XSL level, before FOP. It works, but I had to play around with all page sizes and margins... |
| Free Forum Powered by Nabble | Forum Help |