Developer forum

Forum » Development » &pdf generates a blank PDF

&pdf generates a blank PDF

Martin Nielsen
Reply

Hey,

I'm trying to generate a pricelist as PDF from an eCom solution, but when i append &pdf=true to the url, the PDF i get is just a blank page.

The page i'm trying to generate contains some custom code, but it renderes correctly without &pdf=true in the url.

I'm on DW8.5.1.0, is there a know issue?

// Martin

 


Replies

 
Roy
Reply

Same problem here...

 
Nicolai Høeg Pedersen
Reply

Hi Roy

We need a lot more information to be able to help :-). Do you have a URL to begin with?

BR Nicolai

 
Roy
Reply

It's a local project so I don't have a url to reproduce it and our test environment (which is accesible on the internet) for this project gives an error when we put ?pdf=true at the end of the url:

System.Exception: PDFClass constructor exception ---> WebSupergoo.ABCpdf9.Internal.PDFException: Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: Access denied while writing to the registry. For IIS applications, please enable "Load User Profile" or consult MSHtmlBootstrap in the documentation. Alternatively, you can configure this registry setting manually: 1. Create registry key "Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_IVIEWOBJECTDRAW_DMLT9_WITH_GDI" (which have to be under the Wow6432Node key if the running process is 32-bit on an x64 system; the current process is 32-bit). 2. In the created key, create a DWORD value named "w3wp.exe". 3. Set the DWORD's value to 1. at WebSupergoo.ABCpdf9.Doc.AddUrlHtml(String urlOrHtml, Boolean isHtml, Boolean paged, Int32 width, Boolean disableCache) at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache) at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url) at Dynamicweb.PDFClass..ctor(String strUrl, Boolean landscape, Boolean letter, Int32 leftRightMargin, Int32 topBottomMargin, PaperSize pageSize) --- End of inner exception stack trace --- at Dynamicweb.PDFClass..ctor(String strUrl, Boolean landscape, Boolean letter, Int32 leftRightMargin, Int32 topBottomMargin, PaperSize pageSize) at Dynamicweb.Frontend.PageView.Output()

I've tried it with another project which is live, on the production environment it works, on the test environment the same error and local also a blank pdf.

I'm running Windows 8.1, IIS 8.5 and IE11.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Here's some useful info frorm the error:

For IIS applications, please enable "Load User Profile"

In IIS, go to your site's Application Pool, open up Advanced Settings and then enable the Load User Profile option.

Hope this helps,

Imar

 
Roy
Reply

Enabled it on the test environment, now it's working there, thanks! But locally still blank PDF's...

 

You must be logged in to post in the forum