Developer forum

Forum » Development » Get content of as DW Pages as string

Get content of as DW Pages as string

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We need to create 1 single PDF with the result of several pages in DW. For example:

  • /my-page?a=1&b=2&c=111
  • /my-page?a=1&b=2&c=222
  • /my-page?a=1&b=2&c=333

 

Using an HttpClient we can make these requests and then concatenate the responses (and use PdfRenderer to get the PDF), but I was wondering if there was any Dynamicweb API methods (instead of using HttpClient).

 

Please consider that:

  • "my-page" has multiple rows and paragraphs
  • I have multiple querystring parameters because of multiple Data Lists app instances
    • So we will never have a 100% friendly URL - in other words, I need to accomodate for any querystring parameter

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

No such feature, I am affraid.

I would consider an external service - e.g. https://pdfmyurl.com/ - it supports batching: https://pdfmyurl.com/batch-web-to-pdf-api

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Thank you for the quick answer and suggestion Nicolai

 

You must be logged in to post in the forum