Skip to content
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

Can't get output file when running generate cmd #2

Open
Anshulgada opened this issue Mar 4, 2022 · 7 comments
Open

Can't get output file when running generate cmd #2

Anshulgada opened this issue Mar 4, 2022 · 7 comments

Comments

@Anshulgada
Copy link

CMD Error Pdf Download

Here I have attached an image of the output I got.

@noorm91
Copy link

noorm91 commented Nov 8, 2022

Did you find a solution to this?

@Anshulgada
Copy link
Author

Nope, just stopped trying honestly!

@noorm91
Copy link

noorm91 commented Nov 9, 2022

Feel you, I'm doing the same, I found a "low quality" way to get the pdfs though. Images are a little blurry, but still ok. Online tool called docdownloader.

@Anshulgada
Copy link
Author

Does it work with sites which pdfs and all?

@forota123
Copy link

Have the same problem. Is there a fix?

@Anshulgada
Copy link
Author

Anshulgada commented Feb 22, 2023

@forota123 nah I gave up on this and instead just wrote a simple python script to take screenshots for me for every second and in between them make it click the right arrow to go to the next slide. You can always merge the ss to make a pdf.
Pretty much usable. I'll attach the code below.

# Basic script to take ss of screen

import os
import time
import pyautogui
import keyboard

screenshot_dir = os.path.join("C:/Users/<username>/Desktop")     # Location of ss to be saved
if not os.path.exists(screenshot_dir):
    os.makedirs(screenshot_dir)

interval_before_loop = 10
interval_between_screenshots = 1
iterations = 12

time.sleep(interval_before_loop)


for i in range(iterations):
    screenshot = pyautogui.screenshot()
    screenshot_path = os.path.join(screenshot_dir, f"Page {i + 1}.png")
    screenshot.save(screenshot_path)
    keyboard.press_and_release('right')
    time.sleep(interval_between_screenshots)

@Alex740-eng
Copy link

Check the size of the file you've received. If it's 0B, as it was in my case, that could be the source of the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants