How to scale a PDF or DOCX to the browser width?

By default, PDF’s and DOCX are scaled to 1024 pixels, however this can be changed to any size. Although when scaling a document, the results may not always be perfect and you may want to try a few different sizes before you are happy. Sometimes it is useful to match the have the same browser width as the width of the document, to do this pass -1 to the browser width parameter.

In the below examples PDF's are being created, with the browser width being set to 1500px.