Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1407

Help: Rainmeter Skins • Re: If anyone is bored, I'll wait :) I'm waiting for professionals

$
0
0
With a small correction in Python, I can now get "cleared balance". Not having an API was such a hassle.

Code:

import PyPDF2with open('output.pdf', 'rb') as pdf_file:    pdf_reader = PyPDF2.PdfReader(pdf_file)        pdf_text = u"ZEPH"    for page_num in range(len(pdf_reader.pages)):        page = pdf_reader.pages[page_num]        text = page.extract_text()        if "ZEPH" in text.split():            pdf_text += textencoded_pdf_text = pdf_text.encode('utf-8')print(encoded_pdf_text)
It will be completed with a minor adjustment.
Image

Statistics: Posted by mtchannel — Yesterday, 12:16 pm



Viewing all articles
Browse latest Browse all 1407

Trending Articles