Developer forum

Forum » Ecommerce - Standard features » Product catalog PDF

Product catalog PDF

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Before we go ahead and create our own solution.
What options do we have in DW to create product catalogs or data sheets in PDF on the fly with data from ecommerce?

I know PIM has this functionality, but this customer does not have and does not want PIM at the moment.


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply
This post has been marked as an answer

Hi Martin,

You can use the 'pdf=true' url parameter on page. When it will create a PDF of the content you see in the page. 

If you want to create a Product catalog or a datasheet, you should create a page with the 'ProductCatalog' app on a paragraph, and then design one template for 'Product List', which would define how your Product catalog PDF should look like and one for 'Product Detail', which defines how your datasheet PDF should look like.

In that way, you have access to the same data as you have in your regular frontend templates. 

For your Product Catalog, you could maybe also use the 'Catalog publishing'.

https://doc.dynamicweb.com/documentation-9/ecommerce/product-catalog/product-catalog-app#sideNavTitle1-3

Best regards,

Steffen

Votes for this answer: 1
 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Nice! Just what I was looking for, thank you.

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I ran into this error when trying to use the PDF parameter.
The website is using Azure, so I'm not sure if I can set "Load User Profile" or change the registry. Any workarounds?

System.Exception: Pdf creator 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 64-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.Imaging.Pdf..ctor(String url, String extranetUserName, String extranetPassword, Boolean landscape, Boolean isUsLetterFormat, Int32 leftRightMargin, Int32 topBottomMargin, PdfPaperSize pageSize) --- End of inner exception stack trace --- at Dynamicweb.Imaging.Pdf..ctor(String url, String extranetUserName, String extranetPassword, Boolean landscape, Boolean isUsLetterFormat, Int32 leftRightMargin, Int32 topBottomMargin, PdfPaperSize pageSize) at Dynamicweb.Frontend.PageView.Output()
 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Martin,

We might have something that could work.

Instead of setting the "Load user profile" in the IIS, you should create an Application setting "WEBSITE_LOAD_USER_PROFILE" with the value "1" in Azure on the AppService your site is running on.

Best regards,

Steffen

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks! I tried this, but I still get the same error, even after a restart.
We have sufficient app service plan (PremiumV2: 1 Small) so it is not a shared instance.

Any other tips?

 
Nicolai Pedersen
Reply

Use a service like https://pdfcrowd.com/

BR Nicolai

 

You must be logged in to post in the forum