![]() |
#16 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 597268
Join Date: Jan 2011
Location: USA
Device: reMarkable2 Pixel-Tablet PB-Inkpad-Eo PB-743
|
Quote:
Code:
!apt-get install ghostscript import requests urlpfx = "https://archive.org/download/" name = input("Enter a name: ") outname = input("Enter output file name: ") url = f"{urlpfx}/{name}" print(f"retrieving {url}") response = requests.get(url) print(response) if response.status_code == 200: with open(f"{outname}.pdf", "wb") as f: f.write(response.content) !gs -sDEVICE=pdfwrite -o {outname}_new.pdf {outname}.pdf print(f"File '{outname}_new.pdf' created successfully.") else: print(f"Failed to download the file. Status code: {response.status_code}") |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Searching for a device for note taking | bakaxcb | Which one should I buy? | 12 | 09-01-2018 03:46 AM |
Looking for note taking device | deliadam | Which one should I buy? | 24 | 10-02-2015 12:49 PM |
Best device for note-taking | yehudin | Which one should I buy? | 13 | 06-06-2012 10:37 AM |
Pocketbook Note-Taking Review | language gamer | PocketBook | 20 | 01-22-2010 10:23 AM |
Note Taking on the Pocketbook 360 | luqmaninbmore | PocketBook | 1 | 11-06-2009 07:33 PM |