Jeremias Maerki
Fri, 11 Jul 2008 08:02:27 -0700
Ah well, my afternoon's almost over anyway... Here's a proposal: http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPdf Feel free to improve/comment/fix. In FO that would look like this: <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:declarations> <pdf:document-settings xmlns:pdf="http://xmlgraphics.apache.org/fop/pdf" page-mode="full-screen"/> </fo:declarations> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> <fo:block>Hello World!</fo:block> </fo:flow> </fo:page-sequence> </fo:root> On 11.07.2008 16:21:55 Jiri Tyr wrote: > OK, I understand. Could you then send me some XPM demo and your > imagination how should be the fox:pdf-catalog implemented in FO file? > Then I will try to implement it by my self or find/hire somebody who > could do it for me ;o) > > Jeremias Maerki wrote: > > On 11.07.2008 15:52:12 Jiri Tyr wrote: > >> And could you forward this our conversation to the fop-dev mailing list? > > > > Not necessary as all committers are required to be on fop-users, too. > > They can look this up. > > > >> Maybe somebody could implement it faster and better than me. > > > > Maybe. But you might not find anyone with the time and motivation to do > > it. It always boils down to the three options of Open Source: > > 1. This is open source software, you can do it yourself. > > 2. This is open source software, you can wait until someone has free > > time and thinks this is fun to implement. > > 3. Or you can find/hire someone to do it for you. > > ;-) > > > >> Jeremias Maerki wrote: > >>> I'll defer to the interested parties to design that. I haven't looked > >>> into what would be necessary to have. But design work should probably be > >>> done over on [EMAIL PROTECTED] > >>> > >>> On 11.07.2008 15:22:03 Jiri Tyr wrote: > >>>> Can you send me some example of FO with the fox:pdf-catalog example? > >>>> Then I could try to investigate if I can clone and modify the XMP for > >>>> this purpose. > >>>> > >>>> Jiri > >>>> > >>>> > >>>> Jeremias Maerki wrote: > >>>>> Take a look at the XMP metadata extension which is quite similar to > >>>>> what's necessary here: > >>>>> src/java/org/apache/fop/fo/extensions/xmp/*.java > >>>>> The PDFRenderer has to be extended, too, to catch the > >>>>> ExtensionAttachment subclass for the extension and react on it. > >>>>> > >>>>> It's not too difficult to implement this but it takes a few changes in > >>>>> at least three packages. It also requires learning a bit about PDF so > >>>>> you can extend the PDF library accordingly. HTH > >>>>> > >>>>> On 11.07.2008 14:27:59 Jiri Tyr wrote: > >>>>>> So it is necessary to create some special interface for this purpose? > >>>>>> I > >>>>>> mean some general interface for input from a config file and from FO > >>>>>> file. If this interface exists it should not be difficult to change > >>>>>> any > >>>>>> property from users Java program. > >>>>>> > >>>>>> How difficult it can be to implement such think in FOP? If somebody > >>>>>> have > >>>>>> a time to sketch out the solution, it would be great. > >>>>>> > >>>>>> Jiri > >>>>>> > >>>>>> > >>>>>> Jeremias Maerki wrote: > >>>>>>> Yes, the FO spec allows that. Please realize that some people want one > >>>>>>> feature to be configurable in the config file. Others want to access > >>>>>>> it > >>>>>>> programmatically. And others want to include it in the FO file. Often > >>>>>>> we > >>>>>>> end up doing the same in more than one places. > >>>>>>> > >>>>>>> On 11.07.2008 12:27:09 Justus-bulk wrote: > >>>>>>>> Are processor-specific fo extensions really the generally-accepted > >>>>>>>> way > >>>>>>>> to go? I'd hesitate because this requires processor-specific XSLT > >>>>>>>> customizations. Are there really no better ways to to pass > >>>>>>>> document-specific parameters to the FO processor: command-line > >>>>>>>> options, .properties files, ... > > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]