Closed peteralbert closed 3 years ago
Hm... I think I made it intentionally, to disable ability to set margins, because of warning on Gotenberg page
Attention: when converting a website to PDF, you should remove all margins. If not, some of the content of the page might be hidden.
But I guess I missed orientation and paper size... Does it work when you interact with Gotenberg directly? (I cannot check right now)
So the orientation works (when simply casting to to any). I haven’t tried size or margins yet - will try this tonight.
Just verified - all three elements (orientation, size, margins) work without any issue!
Cool, thank you! Sorry for delay, was away from laptop for a few days. Then I'll fix typings and will publish new version in a week :) Hopefully tomorrow
Published version 0.6.3 with fixed typings for url
function.
@peteralbert check please
Thank you - this solves the issue!
For the code:
TypeScript complains:
in the
url
line. The actually execution works fine.Could it be that the function overloading in to.ts lacks this additional signature?
(...opts: ConversionOptions[]): (request: UrlRequest) => UrlRequest
Let me know if I should create a PR!
Thanks