I have a separate route that will generate a PDF of a page. This works well however I would like to generate a preview of the PDF for unpublished content.
Is there a way to do this by extending the umbraco Preview?
Alternitivly if I create a customer preview route for the PDF I have an issue getting an IPublishedContent of the draft/preview. If I get an IContent the issue is that all our code so far is based on IPublishedContent and does not seem and easy way to adapt IContent to IPublishedContent.
Custom Preview
I have a separate route that will generate a PDF of a page. This works well however I would like to generate a preview of the PDF for unpublished content.
Is there a way to do this by extending the umbraco Preview?
Alternitivly if I create a customer preview route for the PDF I have an issue getting an IPublishedContent of the draft/preview. If I get an IContent the issue is that all our code so far is based on IPublishedContent and does not seem and easy way to adapt IContent to IPublishedContent.
is working on a reply...