Комментарии:
I really really need to know how to flatten a pdf. Ghostscript doesn't work, Magick merges all my pages onto the first. I can't use pdftk on a Silicon Mac, roads all lead to nowhere!
ОтветитьHI, you Video was very Helpful !!
Please Please create Video to code to put an image and / or a user defined text as a watermark into a pdf !!!????!!!!!
if not video then please share the code ??
the other videos use the old libraries and not the new ones...
Fantastic Turtorial
ОтветитьI have a file with 15 pages and I want to write page 2 through page 15 to another file because I no longer need page 1. So I want to throw away page 1.
ОтветитьCan you help me with this?
Ответитьfor root, dirs, files in os.walk(main_data_path):
for dir1 in dirs:
huidige_file = path + "\\" + dir1 + "\\" + FILE
if os.path.exists(huidige_file):
pdf = PdfReader(huidige_file)
with open(huidige_file, "rb") as pdf_reader:
file_new = path + "\\" + dir1 + "\\" + outpdffilename
pdfreader = PdfReader(pdf_reader)
for i in range(1, len(pdfreader.pages)):
selected_page = pdfreader.pages[i] # page = pdfreader.pages(i, num_of_pages)
pdf_writer = PdfWriter()
pdf_writer.add_page(selected_page)
with open(file_new, "wb") as outPdf:
pdf_writer.write(outPdf)
print("Created a pdf: '{}'".format(file_new)), print(i)
# pdf_writer.write(outPdf)
Hello,
I almost succeeded in this. I have one more problem. I want to add more pages to the pdf file. But it overwrites the previous page. I want to add it but I can't.
Thanks
Ответитьyou did not cover the real scenarios, when extracted text from research paper pdfs contain weird fonts, non homogeneous spacing, newlines and sometime letters overlap on each other. Can pypdf2 deal with that?
Ответить@JCharis Tech how to read number of sections in PDF files ?
Ответитьexcellent variable names and clean display really helps with the example
Ответитьwhat is the IDE you are using?
ОтветитьI have a simple problem; I have to read a pdf and change some words of text and then save to a new pdf that keeps thesame layoutc of originale pdf. I don't need anything else, but I can't find working examples on the web! Can you help me, Thanks, Francesco
ОтветитьHi awesome video. I have one question, where i want create replica of pdf through automation python script and save it on cloud. Can u suggest for same?
Advance Thanks
How to extract embedded files information from a pdf file?
Ответитьvery good video. I have a question if I have a pdf file , i only want 3 things from the pdf. airway bill no, total amount and if it's goods coming in for eg. then it import. how can i extract ?
ОтветитьGreat video!
ОтветитьHow do you extract data from PDF to text then systematically show the extracted text on excel?
Ответитьbest tutorial i have ever taken with lots of exercises and detailed explaination. Thank you so much💗💗💗♥
ОтветитьReally thorough and updated methods, thank you!
ОтветитьAwesome!
ОтветитьGreat tutorial! Thank you so much!
Ответитьdo you know how to convert XML in PDF? i was looking for pyxml2pdf but i kinda don't get it at all, i don't know if its a stopped project or i get it wrong
ОтветитьI want to build one donation website, Please help me,
how to do, and how to add upi option in that website, and I want to store the data web excel or SQL server database ,and how to give that website my friends , please explain me and Don't Skip it , please help me by using Streamlit, please teach the code