I am migrating from v7 to v8 and had used Moriyama PDF Creator to generate PDF documents from CMS data. Unfortunately this package is no longer available and does not work on Umbraco v8. What are other people using on Umbraco v8 to generate PDF documents from CMS data? (PS: I am deployed on Microsoft ISS for my web server.)
I built a site a few years back (V7) and used iTextSharp for generating PDF's.
Admittedly all the generation code had to be written from scratch to suit the requirements, but in essence, the same code would quite easily port over to V8 as it used IPublishedContent objects.
To download the file I used a file handler that took a couple of query string parameters.
Not sure it would be of any use, but more than happy to share the code I have if you need something to kick start the coding (assuming you are a coder).
thanks Nigel, I am not sure if this is the way I want to go. I can code (HTML, CSS, Javascript, XML-FO) but not sure how much coding is needed to go this route. So I would appreciate a look at your code. Thanks.
basepath needs to be correct of course.. but if you have access to the server you can check that var basePath = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
Hi Dan, I've set this up using iTextSharp on multiple v7 sites and the code should work fine on v8 with a few syntax tweaks. Happy to share the code with you if you need.
I tried several of the solutions that the community suggested including Chrome2HTML, iTextSharp and wkhtmltopdf. I got all three of these to work, but found the results of converting an HTML page to a PDF lacked much of the fine grained control that I was accustom to using XML-FO and PDF Creator. After doing some research I found that PDF Creator was based on the ibex40 engine. I then disassembled the Moriyama PDF Creator package and manually installed the components and templates per the packing list into the Umbraco 8 structure. This seemed to work, leading me to think that the only problem with Moriyama PDF Creator in Umbraco 8 is the packaging and deployment list.
I want to Thank the community for all the great help
Hello Dan,
I'm rebuilding an Umbraco 7 website in v8. We had purchased PDF Creator license for v7 site.
I want to use PDF Creator with v8. Can you please guide me how you managed PDF Creator work?
When i tried to install package via backoffice, installation stopped with error. Then i checked the package contents and project files i see all the contents are present in project.
When i try to generate pdf i only get an xml output.
Edit: I added the following into system.webserver in web.config, it works now.
PDF Generation from CMS data
I am migrating from v7 to v8 and had used Moriyama PDF Creator to generate PDF documents from CMS data. Unfortunately this package is no longer available and does not work on Umbraco v8. What are other people using on Umbraco v8 to generate PDF documents from CMS data? (PS: I am deployed on Microsoft ISS for my web server.)
Hi Dan
I built a site a few years back (V7) and used iTextSharp for generating PDF's.
Admittedly all the generation code had to be written from scratch to suit the requirements, but in essence, the same code would quite easily port over to V8 as it used IPublishedContent objects.
To download the file I used a file handler that took a couple of query string parameters.
Not sure it would be of any use, but more than happy to share the code I have if you need something to kick start the coding (assuming you are a coder).
Cheers
Nigel
thanks Nigel, I am not sure if this is the way I want to go. I can code (HTML, CSS, Javascript, XML-FO) but not sure how much coding is needed to go this route. So I would appreciate a look at your code. Thanks.
Comment author was deleted
or: https://github.com/Sicos1977/ChromeHtmlToPdf
Comment author was deleted
if you are on your own webserver you can just use chrome.exe to gen a pdf of the html page... using the print css...
Comment author was deleted
something like:
Comment author was deleted
and the chromerender class is
Comment author was deleted
basepath needs to be correct of course.. but if you have access to the server you can check that var basePath = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
Comment author was deleted
so then you just have an api you can use that get's a url and outputs a pdf (using print style of the page)
Comment author was deleted
no dependency on any cms (version)... so doesn't break when ugrading
Thanks Tim, I will look into this. I am on my own server (albeit a VM) so I do have access to file system and executables. Thanks again.
Comment author was deleted
sure should be doable on a VM... we do the same...
Tim, Haven't had time to test on a server, but does this need to have any user settings (it, Chrome that is, is supposed to run in a user context)?
Comment author was deleted
nope.. it is run --headless , just piping the params to the .exe and getting the result
Hi Dan, I've set this up using iTextSharp on multiple v7 sites and the code should work fine on v8 with a few syntax tweaks. Happy to share the code with you if you need.
Thanks jonok, I like what I am seeing, and would love it if you could share your code. my email is [email protected]
I've just implemented pdf-generation with SelectPdf.HtmlToPdf (it's for free now) and its about 4 lines of code.
I tried several of the solutions that the community suggested including Chrome2HTML, iTextSharp and wkhtmltopdf. I got all three of these to work, but found the results of converting an HTML page to a PDF lacked much of the fine grained control that I was accustom to using XML-FO and PDF Creator. After doing some research I found that PDF Creator was based on the ibex40 engine. I then disassembled the Moriyama PDF Creator package and manually installed the components and templates per the packing list into the Umbraco 8 structure. This seemed to work, leading me to think that the only problem with Moriyama PDF Creator in Umbraco 8 is the packaging and deployment list.
I want to Thank the community for all the great help
Hello Dan, I'm rebuilding an Umbraco 7 website in v8. We had purchased PDF Creator license for v7 site. I want to use PDF Creator with v8. Can you please guide me how you managed PDF Creator work? When i tried to install package via backoffice, installation stopped with error. Then i checked the package contents and project files i see all the contents are present in project. When i try to generate pdf i only get an xml output.
Edit: I added the following into system.webserver in web.config, it works now.
Glad you got it working... looking for someone who can migrate this package to Umbraco 9-12 as a dot Net package.
is working on a reply...