Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've installed PDF creator and ran an example against a test page which has text and images when viewed in a browser.
Using PDFRazorExample as the template and adding it to the URL always shows the text and no images.
I then tried the XSLT version (web forms) but doesnt display anything.
Do i need to do something or does my template need to match some criteria?
Edit: Just saw the video, Im not sure where im going wrong but possible to have a download of the site and code you showed in your demo so i can see what im doing wrong? None of images, some text and formatting is missing
You have to author a template for PDF creator that is specific to your Umbraco document type and properties.
The examples just assume that the document type has a property called "bodyText" (a bit of an Umbraco convention).
I'm not sure what you are trying - but PDF creator won't work with HTML templates - you'll need to use the examples to craft a template that will output FO.
Im using a RichText editor with an alias of CustomContent - i tried changing bodyText to CustomContent but that doesnt work? Do i need another syntax?
Could you post a link to your template...
You'll notice that you also need to parse the content of your rich text area, some basic examples are provided in the sample template.
Yea i noticed i have to parse it but cant understand why its blank. Im looking at the example atm to see if i can figure this out.
Its all local but the template is the Razor Example that came with the product and i have added the below lines to get to the content i need
Couple of hints...
This'll output the FO XML which will make it a bit easier to debug.
I am using VS but for some strange reason i cant get into debug mode even though i have
I can see the XML generated but nothing listed against Document body
<!-- Document Body -->
I'm looking into this a little further but will keep you updated. How could i display images?
Threre is an example of rendering images in the example....
var docRoot = IOHelper.MapPath("~/");
<fo:external-graphic src="@docRoot/@node.Attributes["src"].Value" content-width="9cm"/>
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted