A4 (B9 Platform) Discussion Discussion forum for the B9 Audi A4 2017-

Owner's Manual in PDF

Thread Tools
 
Search this Thread
 
Old 10-20-2016, 04:08 PM
  #1  
AudiWorld Member
Thread Starter
 
s_Fanous's Avatar
 
Join Date: Aug 2016
Location: Milton, Ontario, Canada
Posts: 100
Likes: 0
Received 0 Likes on 0 Posts
Default Owner's Manual in PDF

I wrote a 35 lines script to automate (Moving the mouse and clicking) going through every page of the online manual and printing the page using Google Chrome's "Save as PDF" functionality. The end result of that script is 400 PDF files numbered 001.pdf to 400.pdf.

I've also used a PDF tool to merge all 400 PDFs into a PDF file (4 files of varying quality). Now 2 problems with this are
  1. The single file size is 48MB (Low Quality), 162MB (Medium Quality), 210MB (Good Quality), and 365MB (Best Quality). On my PC Medium Quality is good but Low Quality is still readable
  2. You can't do a textual search since every page was captured as an image into PDF

For fear of copyright infringement I will not be publicly posting the files, but if anyone wants any of them, just send me a PM and I'll provide a link to the 4 files.

Last edited by s_Fanous; 10-20-2016 at 04:14 PM.
Old 10-20-2016, 05:10 PM
  #2  
AudiWorld Member
 
sprior's Avatar
 
Join Date: Apr 2010
Location: Danbury, CT
Posts: 362
Received 5 Likes on 4 Posts
Default

I'd be interested in the script.
Old 10-20-2016, 05:18 PM
  #3  
AudiWorld Member
Thread Starter
 
s_Fanous's Avatar
 
Join Date: Aug 2016
Location: Milton, Ontario, Canada
Posts: 100
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by sprior
I'd be interested in the script.
The script or the manual?

It's a python script and would have to be adjusted based on resolution since the mouse movement is based on co-ordinates and that will differ depending on the screen size and resolution!!!
Old 10-20-2016, 05:27 PM
  #4  
AudiWorld Senior Member
 
plat27265's Avatar
 
Join Date: Nov 2015
Location: GVRD, BC Canada
Posts: 1,916
Received 11 Likes on 9 Posts
Default

For my B8.5 S5, I PDF'd each page manually as I read through it. Currently, the pages are not combined so they are more manageable. As you mentioned, combining them into one large book means that the resulting file size is massive. If I need to refer to a topic, I open the table of contents first to look for the topic. Then, I find the file that has those pages.
Old 10-20-2016, 05:30 PM
  #5  
AudiWorld Member
 
sprior's Avatar
 
Join Date: Apr 2010
Location: Danbury, CT
Posts: 362
Received 5 Likes on 4 Posts
Default

The script, it might come in useful for this and other manuals.
Old 10-20-2016, 05:45 PM
  #6  
AudiWorld Member
Thread Starter
 
s_Fanous's Avatar
 
Join Date: Aug 2016
Location: Milton, Ontario, Canada
Posts: 100
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by sprior
The script, it might come in useful for this and other manuals.
Here you go

Code:
import pyautogui
import sys
import time

page_number = 1

time.sleep(1)

pyautogui.moveTo(178, 715) # Zoom Icon
pyautogui.click()

while (True):
	pyautogui.moveTo(87, 715) # Print Icon
	pyautogui.click()

	time.sleep(1)
	pyautogui.moveTo(830, 500) # Print Button
	pyautogui.click()

	time.sleep(2)
	pyautogui.moveTo(224, 152) # Blue Save Button
	pyautogui.click()

	time.sleep(1)
	pyautogui.typewrite(str(page_number), interval=0.25) # File Name
	pyautogui.moveTo(515, 447) # Grey Save Button
	pyautogui.click()

	time.sleep(0.5)
	

	pyautogui.moveTo(860, 319) # Close Button
	pyautogui.click()

	time.sleep(0.5)
	
	pyautogui.moveTo(1310, 715) # Next Page
	pyautogui.click()

	time.sleep(1)
	
	page_number = page_number + 1
Do the following to have it run
  1. In a Google Chrome tab open the online manual
  2. Manually print (Save as PDF) the first page (So that Chrome remember where you want to save your files )
  3. Execute the script (You'll need to install PyAutoGUI)
  4. Quickly (Within 1 second. You can change the first time.sleep(1) to a different value if you want more time) switch to the Chrome window and make sure you are on the tab with the online manual
  5. Leave your computer (P.S. The Chrome session will timeout at some point so you'll have to redo the above steps but you'll need to change the page_number variable to the right value and you'll also need to navigate to the correct page in the manual before executing the script

P.S. As I stated above, these co-ordinates are accurate on my laptop. They might not be on your machine, so you'll have to figure out the appropriate co-ordinates to make sure it properly runs.

Good luck

Last edited by s_Fanous; 10-20-2016 at 05:52 PM.
Old 10-20-2016, 06:18 PM
  #7  
AudiWorld Member
 
fnarq's Avatar
 
Join Date: Aug 2016
Location: Metro NY
Posts: 107
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by s_Fanous
You can't do a textual search since every page was captured as an image into PDF
You weren't able to OCR the pdfs after?
Old 10-20-2016, 08:47 PM
  #8  
AudiWorld Member
 
sprior's Avatar
 
Join Date: Apr 2010
Location: Danbury, CT
Posts: 362
Received 5 Likes on 4 Posts
Default

Cool! Thanks.
Old 10-21-2016, 05:04 AM
  #9  
AudiWorld Member
Thread Starter
 
s_Fanous's Avatar
 
Join Date: Aug 2016
Location: Milton, Ontario, Canada
Posts: 100
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by fnarq
You weren't able to OCR the pdfs after?
I haven't found a free tool that would be able to handle that file size yet and I doubt OCR would do a good job, but feel free to recommend a tool and I'll give it a try.
Old 10-21-2016, 06:51 AM
  #10  
AudiWorld Member
Thread Starter
 
s_Fanous's Avatar
 
Join Date: Aug 2016
Location: Milton, Ontario, Canada
Posts: 100
Likes: 0
Received 0 Likes on 0 Posts
Default

Ok, so I did find a service that does a pretty good OCR job but can only do 10 pages at a time at a slow rate. I'll get the whole manual OCRed and that will be searchable


Quick Reply: Owner's Manual in PDF



All times are GMT -8. The time now is 09:43 AM.