Re: [Hypercontent-users] output as pdf
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-04-14 14:44:50
|
Carl, PDF support in Version 2 is 100% backwards compatible with however you set it up in v1.4; the only difference is it adds the option of using internal "hypercontent:" urls to grab images. Alex On Apr 14, 2005, at 5:09 AM, Carl Barrow wrote: > Hi Alex > > I got things set up fine and am now able to output as pdf. Thanks very > much. Will there be any change in the way this is handled in version > 2? If so, I'll wait to set things up properly until after I've > upgraded. > > Thanks > Carl > > Carl Barrow wrote: > >> Thanks very much for the info Alex, it's very useful. I'll let you >> know how I get on! >> >> Carl >> >> Alex Vigdor wrote: >> >>> Sorry, our mail server stripped the attachment off that message. >>> The "html_fo.xsl" file I tried to attach is the same that you can >>> find in the sample project, so have a look for it there. Let me >>> know if you have any trouble finding it, and I'll post it on the web >>> site. >>> >>> Alex >>> >>> On Apr 12, 2005, at 10:43 AM, Alex Vigdor wrote: >>> >>>> Hi Carl, >>>> The hard part is learning to write xsl formatting objects, >>>> which provide the necessary instructions for the conversion to PDF. >>>> In terms of configuration, all you have to do is configure an >>>> output with content type "application/pdf" and set up the >>>> transformation with an XSL stylesheet that contains formatting >>>> objects. >>>> >>>> I have attached the fundamental XSL:FO stylesheet you will want to >>>> import into your own formatting object stylesheets; this contains >>>> all the transformations for XHTML into PDF. This stylesheet >>>> requires a parameter "baseDownloadUrl" if you want your images to >>>> be brought into the pdf; the url should point to the build site. In >>>> version 2.0 this is different, as version 2 has a special URL >>>> format for links to internal resources >>>> ("hypercontent:/path/to/file.ext"). >>>> If you have a single HTML element as the root of your XML >>>> document, you could import html_fo.xsl and do something like >>>> >>>> <xsl:template match="/"> >>>> <xsl:apply-templates mode="html"/> >>>> </xsl:template> >>>> >>>> The html_fo templates are set up with this "html" mode to avoid >>>> conflicting with other templates. If you have a different root >>>> element and possibly multiple HTML elements, you will have more >>>> work to do. >>>> >>>> XSL:FO is quite daunting, so give yourself some time to learn it. >>>> There's lots of info online; this tutorial looks like it might be a >>>> good start: >>>> >>>> http://www.renderx.com/tutorial.html >>>> >>>> The sample project that came with HyperContent uses FO to generate >>>> the manual; you can look at "common_fo.xsl" and "docs_fo.xsl" to >>>> get some more examples. >>>> >>>> Good luck! >>>> >>>> Alex >>>> >>>> On Apr 12, 2005, at 10:13 AM, Carl Barrow wrote: >>>> >>>>> Hi Alex >>>>> >>>>> I want to use HyperContent to output a number of pdf files rather >>>>> than html pages. The idea being that we can have pdf files for >>>>> download and staff can update the content when needed without >>>>> worrying about making pdf file and uploading it. Plus the content >>>>> is stored in xml instead of a file on an individual machine. >>>>> >>>>> I assume HyperContent can do this, whats the best way to go about >>>>> it? >>>>> >>>>> Many Thanks >>>>> Carl >>>>> >>>>> >>>>> - >>>>> >>>>> ************************************ >>>>> >>>>> Carl Barrow >>>>> Web Developer >>>>> e-Services >>>>> The University of Hull >>>>> Cottingham Road >>>>> Hull >>>>> HU6 7RX >>>>> Ext. 6838 >>>>> ************************************ >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> SF email is sponsored by - The IT Product Guide >>>>> Read honest & candid reviews on hundreds of IT Products from real >>>>> users. >>>>> Discover which products truly live up to the hype. Start reading >>>>> now. >>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> >>>> WARNING: This message has been altered by a mail filter on >>>> Columbia University's mail server, columbia.edu. >>>> >>>> For information on our filtering policy, please see >>>> http://www.columbia.edu/acis/email/filters/ >>>> >>>> An attachment named html_fo.xsl >>>> was removed from this message as a possible security hazard. >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF email is sponsored by - The IT Product Guide >>> Read honest & candid reviews on hundreds of IT Products from real >>> users. >>> Discover which products truly live up to the hype. Start reading now. >>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> > > -- > ************************************ > > Carl Barrow > Web Developer > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |