lcorbasson / pdfsizeopt

Automatically exported from code.google.com/p/pdfsizeopt
0 stars 0 forks source link

error with pdfsizeopt.py #97

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by gwen.m.r...@gmail.com on 17 Feb 2015 at 1:00

GoogleCodeExporter commented 8 years ago
> 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.

Original comment by pts...@gmail.com on 17 Feb 2015 at 2:38

GoogleCodeExporter commented 8 years ago
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

Original comment by gwen.m.r...@gmail.com on 17 Feb 2015 at 4:05

GoogleCodeExporter commented 8 years ago
> 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.

Original comment by pts...@gmail.com on 17 Feb 2015 at 11:19