<!-- These two headers tell PDF for Umbraco to render a PDF --> <xsl:value-of select="FergusonMoriyama.Pdf.XsltHelper:SetResponseContentType('text/xml')"/> <!-- If you remove this you'll see the FO output in the browser --> <xsl:value-of select="FergusonMoriyama.Pdf.XsltHelper:AppendResponseHeader('X-Pdf-Render', 'true')"/> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-width="297mm" page-height="210mm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm"> <fo:region-body margin="3cm"/> <fo:region-before extent="2cm"/> <fo:region-after extent="2cm"/> <fo:region-start extent="2cm"/> <fo:region-end extent="2cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4" format="A"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:inline font-weight="bold">Hello world!</fo:inline> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet>
Ditto Karen's suggestion below - this was the only place I saw a comment about ensuring that the write entries had been written into web.config.
In my case, it was working on a local 7.4.3 install but not on a local 7.5.3 install. The only difference was that the web.config didn't get updated during install on the 7.5.3 Umbraco version. Don't know why it installed happily on 7.4.3 but not on 7.5.3, but very glad to know what the issue was.
I had the same problem - you should put that in the install instructions to check the web.config and manually add those lines.
I had no errors on the install, all I did was install it and attempt to load one of the sample templates and only got XML. Took me awhile to find this thread and fix it.
See only xml
I'm unable to get the browser to open or download the pdf. I only get the xml output.
Before i buy the package i would like to test it on localhost (no trail massage), it should work right?
Kind regards,
Harm-Jan
You can evaluate on localhost.
If you need some help - please provide some detail:
Thank you for you quick response.
I'm using it on localhost.
I tried all templates, different browsers and watched the instruction video several times.
Using version 2.0
One example is the standard xslt hello world template:
The template looks fine - you didn't mention which version of Umbraco you are using?
Could you also let me know which version of IIS/IISExpress/Cassini and which version .net you are using.
Finally I'll need to look at your web.config file. If you don't wish to post it here - please email it to me: darren at fergusonmoriyama.com
Umbraco version 4.7.1
On localhost i'm using WebMatrix 7.1, IIS 7.5 Express and .net 4.0
This is my web.config
Your web.config is missing a couple of items:
For some reason the installer wasn't able to write to web.config. You can try adding these definitions manually
Awesome! Thanks for the fix.
Ditto Karen's suggestion below - this was the only place I saw a comment about ensuring that the write entries had been written into web.config.
In my case, it was working on a local 7.4.3 install but not on a local 7.5.3 install. The only difference was that the web.config didn't get updated during install on the 7.5.3 Umbraco version. Don't know why it installed happily on 7.4.3 but not on 7.5.3, but very glad to know what the issue was.
That was it!
Thanks again for the quick response.
I had the same problem - you should put that in the install instructions to check the web.config and manually add those lines.
I had no errors on the install, all I did was install it and attempt to load one of the sample templates and only got XML. Took me awhile to find this thread and fix it.
Thansiks.
is working on a reply...