-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdf size #3
Comments
Hello, at the moment there's no option to set the page height/width or margins. The script downloads the books as they are displayed in the Scribd web reader. You can only edit the |
@jaan143 @evmer For margins, I edited line109, margin: 0, replace "0" with 65 maybe, check if the margins are right for you or change the number. |
@sfoot13 |
Is possible to set pdf size, you just need to edit line Line 43: viewport={'width': 1200, 'height': 1600}, Line 83: render_page.set_viewport_size({"width": 1200, "height": 1600}) Replace width and height with a different value (in pixels), for letter size or A4, you need to convert the dimensions to pixels, example: |
@sfoot13 book cover is too big than normal pages in pdf and also please can you help me to set page size of pdf in this script ? |
@jaan143 Can't see an option to change page size, but maybe it can be added. to render the chapter pages and save them as pdf
Also, I talked you on telegram... |
@sfoot13 |
hello
can i add code for pdf size A4 or letter size of pages ?
if it is possible then can you explain me code and line where i can add
also need margin from top and bottom in pages
Thanks
The text was updated successfully, but these errors were encountered: