Arjan

Results 8 comments of Arjan

For reference: there is now a PR #124 to make this possible.

This is probably because Rotativa injects the base URL property in your HTML. See https://github.com/webgio/Rotativa.AspNetCore/issues/60#issuecomment-605624966 . The base URL is set to the internal port your website is listening to,...

This is not a Rotativa problem, but related to [wkhtmltopdf](https://github.com/wkhtmltopdf/wkhtmltopdf). To get the grid to work, you might try [this workaround](https://stackoverflow.com/a/74563646): ```css .row { display: -webkit-box; display: -webkit-flex; display: flex;...

This is probably because Rotativa injects the base URL property in your HTML. See https://github.com/webgio/Rotativa.AspNetCore/issues/60#issuecomment-605624966 . The base URL is set to the internal port your website is listening to,...

The documentation can be improved. All options are documented in code however: ![image](https://github.com/user-attachments/assets/e37f82d0-832e-46dd-ac5b-e47a7b5a2689) Documentation of all options in [wkhtmltopdf can be found here](https://wkhtmltopdf.org/usage/wkhtmltopdf.txt).

In case you haven't fixed this: you encase a part of your CSS in `@media print`. But you haven't provided the `--print-media-type` custom switch. So this CSS is ignored by...

Late, but just for reference if anyone stumbles on this issue. This works: ```csharp var pdf = new ViewAsPdf() { SaveOnServerPath = "wwwroot/output.pdf" }; pdf.BuildFile(this.ControllerContext); ``` `SaveOnServerPath` is obsolete though....

Password option is for passing Basic HTTP authentication, not for protecting the generated PDF with a password. If the HTML you want to transform to a PDF is protected with...