linearize PDF files

We recently purchased a server version of the pdftools, but have some problems on our Windows 2008 Web Server (64-Bit).

Following parameters do NOT protect the pdf file.

pdftools.exe -i "E:\Anwendungen\PdfTools\test.pdf" -o "E:\wwwtemp\foo.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -t "foo1" -a "foo" -k "bar" -S ownerpwd=foobar -S keylen=1 -S permission=1 -S "linearize=true" -l E:\wwwtemp\foo.log

The test.pdf file is the one coming with the zip-package.
It works on a Windows 7 (64-Bit), but as mentioned above not on the Windows 2008 Web Server (64-Bit).

Version shows the following:

Advanced PDF Tools Copyright (C)2000-2009 verypdf.com Inc
Website: http://www.verypdf.com
Release Date: Jul  7 2009

When I tried an older version the program crashed when we used one of the following parameters:

-S keylen=1 -S linearize=true

Please fix this problem, we need the program urgently.
=============================================
Please turn off DEP for "pdftools.exe" application to try again, please refer to following steps about how to turn off DEP in your system,

1. Click "Start"
2. Select "Control Panel"
3. Select "System"
4. Click the "Advanced" tab
5. In the "Performance" region select "Settings"
6. Click the "Data Execute" tab in the dialog box that opens 7. Select "Turn on DEP for all programs and services except for those I select"
8. Click "Add"
9. The open dialog box will open. Browse and select "pdftools.exe" application in your computer, 10. Click "Open"
11. Click "Apply"
12. Click "Ok"
13. Reboot

OK, you can run "pdftools.exe" without any problem now, please to try.

If you still have same problem, please create a remote desktop account on your test machine, after we logged into your test machine, we will research this problem for you asap.

VeryPDF
=============================================
the problem still exists after adding "pdftools.exe" to the exception list.

Since I can't give you access to our productive server I installed another one in a virtual machine.
The error exists on the new machine too.
=============================================
I have updated the pdftools.exe on your machine, you can run following command line to encrypt your PDF file properly now,

pdftools.exe -i "C:\advanced_pdf_tools_cmd_v3.0\test.pdf" -o "C:\advanced_pdf_tools_cmd_v3.0\foo.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -t "foo1" -a "foo" -k "bar" -S ownerpwd=foobar -S keylen=1 -S securitykey=-1852 -S "linearize=true" -l "C:\advanced_pdf_tools_cmd_v3.0\foo.log"

VeryPDF
=============================================
The protection seems to work in the new version, but now we have other problems:

- when I use one of our pdfs, the -a and -k parameters won't work / not set if we remove the securitykey option it works, your test.pdf also works always
- linearize doesn't work, shows following:
Use another method to linearize PDF file...
Not Implemented.
- the program crashes, if the owner password is longer than 31 characters

This also happens on my local Win7 System now.
Following commandline was used:

pdftools.exe -i "E:\temp.pdf" -o "E:\wwwtemp\foo.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -t "foo1" -a "foo" -k "bar" -S ownerpwd=foobar -S keylen=1 -S securitykey=-1852 -S "linearize=true" -l "E:\wwwtemp\foo.log"

I attached a test pdf generated with Adobe Acrobat 9 (temp.pdf).
=============================================
>>- when I use one of our pdfs, the -a and -k parameters won't work /
>>not set if we remove the securitykey option it works, your test.pdf
>>also works always

You can add -e "" parameter to try again.


>>- linearize doesn't work, shows following:
>>Use another method to linearize PDF file...
>>Not Implemented.

We have created a new version of pdftools.exe to you, please download the new version from following URL,

XXXXXXXXXXXXXXXXXXXXXXX

after you replace pdftools.exe with new version, please run following command line to enable "linearize" function to your PDF file,

pdftools.exe -i D:\temp4\temp\temp.pdf -o D:\temp4\temp\_temp.pdf -g Singlepage -n "FitWindow true DisplayDocTitle true" -t "foo1" -a "foo" -k "bar" -e "" -S ownerpwd=foobar -S keylen=1 -S permission=1 -S "linearize=true"


>>- the program crashes, if the owner password is longer than 31 characters

The length of password can't longer than 31 characters, this is the limitation of PDF format, please understand.

VeryPDF
=============================================
The -a and -k now work when I use the -e "" parameter.

If I use the following parameters I get an error:

E:\>pdftools.exe -i "E:\temp.pdf" -o "E:\wwwtemp\foo.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -e "" -t "foo1" -a "foo" -k "bar" -S ownerpwd=foobar -S keylen=1 -S permission=1 -S "linearize=true"

E:\temp.pdf ==> E:\wwwtemp\foo.pdf
Use another method to linearize PDF file...
Advanced PDF Processing [Error]: ( Invalid Object )

You should add the maximum passwort length to the description like this:
-S "ownerpwd=XXX"  : Set 'owner password' to PDF file (max. 31 characters)
=============================================
We have modified the the pdftools.exe to you, please download the new version from following URL,

XXXXXXXXXXXX

Please use "-! Opt2" parameter to instead of -S "linearize=true" to try again, for example,

pdftools.exe -i "D:\temp4\temp\temp.pdf" -o "D:\temp4\temp\temp_out.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -e "" -t "foo1" -a "foo" -k "bar" -S ownerpwd=foobar -S keylen=1 -S permission=1 -! Opt2

VeryPDF
=============================================
Your program doesn't work.

We used the following command:

pdftools.exe -i "temp_in.pdf" -o "temp_out.pdf" -g Singlepage -n "FitWindow true DisplayDocTitle true" -e "" -t "title" -a "author" -k "keywords" -S ownerpwd=LgJMBGTR -S keylen=1 -S permission=1 -! Opt2

Error:
- No title is set
- No author is set
- No description is set
- Your program change the color format too.
The color was changed in a wrong matter.
Please do not change the pdf content!
You can see it in the attachment.

What we also see is:
- the converting process lasts very long 5 min. for about 60 pages
- the file size is reduced by half


It seems that program doesn't work correctly.
Do you think you can you managed the problem?


Please send us a program that will work.
The testing is very expensive to us.

Thank you for your help.
=============================================
You MUST put pdftools.exe and pdfsdk.dll to same folder, then you can insert these information into PDF file correctly.

VeryPDF
=============================================
thank you for the hint to put the pdfsdk.dll in the same folder.
It was my mistake. Sorry!
Now, I tested your new program with exe and dll in the same folder.
-----------------------------
Now
- the title is set
- the author is set
- the description is set
Perfect, thank you.
-----------------------------
But …
1. with "-! opt2":
your program change the color format too.
The color was changed in a wrong matter.
Please do not change the pdf content!
You can see it in the attachment.
Please compare the two pdf's side by side.

2. without "-! opt2":
your program shows an error message:
'Use another method to linearize PDF file...
Advanced PDF Processing [Error]: General Level ( Cannot Open File )'
In the bat-file is no linearize set.
No file is created.

3. with "-S "linearize=true"":
your program shows an error message:
'Use another method to linearize PDF file...
Advanced PDF Processing [Error]: General Level ( Cannot Open File )'
In the bat-file is no linearize set.
No file is created.
-----------------------------
The bat-files are attached in the zip
-----------------------------

So, now we are not able to get a PDF-file, with or without linearize or opt2.
What is to do?

Please send us a program that will work.
1. Please note, your program should not change the color or the quality of the origin pdf!
2. Your program should not rewrite the PDF!

Are you able to make your program work?
Please, help it is urgent.

Thank you for your help.
=============================================
the new version does convert all colorspace to RGB colorspace autmatically, I have disable this feature in the new version, please use the new version to try again.

VeryPDF
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in Advanced PDF Tools and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!