Issue 97: error with pdfsizeopt.py
Reported by gwen.m.r...@gmail.com, Feb 17, 2015
Optimize- What command do you run to optimize the PDF?
c:\pdfsizeopt\pdfsizeopt c:\pdfsizeopt\bigone.pdf

Optimize- What does pdfsizeopt display when running the command above?
File ".\pdfsizeopt.py", line 1
   From: "Saved by Internet Explorer 11"
       ^
SyntaxError: invalid syntax


Optimize- What's wrong with the optimized PDF?
Have not got that far yet. I'm not sure I have downloaded the pdfsizeopt_single correctly. I copied the url and saved it. Could not save as a PY file so saved it as MHT then renamed it? 
Is there somewhere I can download it properly as a PY file as I could not find it on the downloads menu.

Many thanks
Gwen Roberts
gwen.roberts@laytons.com


Feb 17, 2015
Project Member #1 pts...@gmail.com
> I'm not sure I have downloaded the pdfsizeopt_single correctly. I copied the url and saved it.
> From: "Saved by Internet Explorer 11"

It looks like Internet Explorer is unable to save that file properly.

Try visiting http://pdfsizeopt.googlecode.com/git/pdfsizeopt.single from Chrome or Firefox. It will offer you saving the file (as pdfsizeopt.single) automatically.
Feb 17, 2015
#2 gwen.m.r...@gmail.com
Hi there

Thanks for your response.

I had someone else do it in Chrome for me as I don't have it then copied
the file to my c:\pdfsizeopt directory and my root dir.

I now get a different message :
This is pdfsizeopt Zip rUNKNOWN size=103479.
error: Java needed by Multivalent etc etc etc...

I have tried to do as you suggest when creating a new issue and download
Subversion but I am a little worried about downloading any more software
onto my system.

Is there any way you can just email the latest pdfsizeopt.py file? I am
also unsure whether the file should be saved as pdfsizeopt.single or
pdfsizeopt.py and exactly where it should be saved to?

Many thanks
Gwen Roberts
Feb 17, 2015
Project Member #3 pts...@gmail.com
> error: Java needed by Multivalent etc etc etc...

If you need help getting a problem diagnosed, please post the entire error message. The message may not make sense to you, but it is essential for people able to diagnose your problem.

I think you have the correct files now, there is no need to download anything.

Just specify the --use-multivalent=no flag, e.g.

c:\pdfsizeopt\pdfsizeopt --use-multivalent=no c:\pdfsizeopt\bigone.pdf

If it doesn't work, please post the entire error message you get.