pdf password remover

How to decrypt password protected PDF by command line?

When you need to decrypt PDF by command line, the following article will be quite helpful for you. VeryDOC PDF Password Remover either can be used as GUI version software or command line version software. When you use this software as GUI version, it is quite easy to operate. Please check usage in user guide, in the following part, I will show you how to decrypt PDF by command line.

This software can not remove open password if you do not know the open password. It can only remove open password under the condition of you have the right to move it. This software can be used to remove owner password directly. This software supports PDF 1.0-1.7 format, including 40-bit RC4, 128-bit RC4, 128-bit AES decryption, compressed files and unencrypted metadata. 

Step 1. Free download PDF Password Remover

  • As it can be used as GUI version, when downloading finishes, there will be an exe file. Please install this software by double clicking the exe file and following installation message till short cut icon showing up on desktop.
  • When you need to launch this software, please go to installation folder then you will find an exe file named pdfdecrypt.exe. You can call it from MS Dos Window to check usage, parameters and example.

Step 2. Decrypt PDF by command line.

  • When you use this software, please refer to the usage and example.
  • When call this software from MS Dos Windows, please refer to the following command line templates:
  • -i [pdf file name] : decrypt PDF filename or directory.
    -o [pdf file name] : PDF file will be generated.
       If you not specify the -o parameter, the default output file will overwrite the input PDF file.
    -u                 : user password.
    -w                 : owner password.
    -v                 : view the PDF file after decryption.
    -l [log file name] : specify log file for output message.
    -?                 : help.
    -h                 : help.
    --------------------------------------------------------------------
    Example:
         pdfdecrypt -i C:\sample.pdf -o C:\decrypt.pdf -w owner -u user -l C:\error.log
         pdfdecrypt -i C:\sample.pdf
         pdfdecrypt -i C:\sample.pdf -o C:\out.pdf -w "owner password"
         pdfdecrypt -i C:\sample.pdf -o C:\out.pdf -u "user password"
         pdfdecrypt -i C:\pdfdir\ -o D:\ -l C:\error.log

Please note this software can not be used to remove open password protected PDF directly. If you do not have permission to decrypt PDF, this software can not help you make it. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
postscript to text converter

How to extract text from PS file without language limitation?

    When you need to extract text from PostScript image file without language limitation, maybe you can have a free trial of software VeryDOC Postscript to Text Converter. This software can help you extract text from PostScript of language English, French, German, Italian, Chinese Simplified, Chinese Traditional, Czech, Danish,Dutch, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, etc. And this is command line version software, you can call it from other programming languages like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free download Postscript to Text Converter

  • This is command line version software, when downloading finishes there will be a zip file. Please extract it to some folder then you can use it normally.
  • There are many versions of this software like command line version, SDK version, developer version and others. Please download the proper version according to your needs.
  • When you use this software, please note that this is Window application, you can not use it under Mac or Linux platforms.

Step 2. Extract text from PostScript

  • Here is the usage for your reference:ps2txt.exe [options] [Options] <PS Files>
  • When extract text from PostScript, please refer to the following command line templates:
  • ps2txt.exe C:\input.ps C:\output.txt
    ps2txt.exe -nolayout C:\input.ps C:\output.txt

  • When you use this software, please do not take language reason into consideration as it can extract text from it automatically.
  • There are some parameters for your reference:
  • -firstpage <int> : when you need to specify the start page of converted PS file, please add this parameter. It is range from 1 to max page.
    -lastpage <int>  :The same with the above parameter, it is about last page to print, from 1 to max page.
    -nolayout        : when you run the conversion and don't need to maintain original physical layout, please add this parameter.
    -nopgbreak       : if you don't need to insert page breaks between pages, please add this parameter.
    -$ <string>      : when you need to register this software, please add this parameter after inputting registration key.

  • Meanwhile, this software also can help you extract text from EPS image file. Please use the same method to run the conversion.

During the using, if you have any question,please contact us as soon as possible. This software can read text in postscript and EPS files and outputs an ASCII rendering so it  is quite useful when trying to search or read the text contained in postscript and EPS files.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
htmlprint to any converter

How to convert a web page to XPS file from Command Line?

I am attempting to test out the html2any.exe with the print to xps command. I can get it working fine, but the resulting xps image is not crisp at all...very blurry. Is there anything I can do about this?

Customer
-----------------------------
Here is the url for the test page I have been working with.

https://www.verydoc.com

Before I set this up though, even when I tested html2any -printtoxps for the verypdf.com site it also was coming out blurry. As you can see, we are thinking of using this to convert badge files to xps for printing. These badges may have graphics and/or barcodes which will need to be crisp.

I do not have an order id yet because we are still testing the product to se if it will work for our purposes.

Thank you in advance for you help,

Customer
-----------------------------
I have tried following command line, it does convert this web page to a XPS file properly,

html2any.exe -printtoxps D:\temp\out.xps https://www.verydoc.com

Can you work fine by above command line in your system?

image

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf to vector converter

Convert PDF to SVG by some libraries

Question:I want to convert PDF to SVG please suggest some libraries/executable that will be able to do this efficiently. I have written my own program using some libraries. This solution works great but the size of the resulting SVG files in huge.(many times greater than the pdf). I have figured out where the problem is by looking at the SVG in a text editor. it encloses every character in the original document in its own block even if the font properties of the characters is the same. For example the word hello will appear as 6 different text blocks. Is there a way to fix this matter in VeryDOC?

Answer: According to your description, you need to find a libraries which can help you convert PDF to SVG in little size. If so, maybe you can have a free trial of this software VeryDOC PDF to Vector Converter, by which you can convert large volumes of PDF files to SVG from Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously.  When you use this software, the output SVG file will not too big. You can have a free trial of it, and if you are not satisfied with the result, we provide customization of software developing. We can improve software according to your needs.

Step 1. Free download PDF to Vector Converter SDK Developer License

  • This SDK version provides DLL Library and Command Line exe file for your to try.
  • When downloading finishes, there is a zip file. You need to unzip it then you can call it normally.
  • When you use this software, please refer to the usage  and code template in unzip folder.

Step 2. Convert PDF to SVG from C#

  • Here is code template of calling this software from C# for converting PDF to SVG, please have a check.

Please by following steps to call pdf2vec.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following C# code to run the conversion inside a special user account,

~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
System.Type otype = System.Type.GetTypeFromProgID("exeshell.shell");
Object o = System.Activator.CreateInstance(otype);
otype.InvokeMember("RunCommandLine", System.Reflection.BindingFlags.InvokeMethod, null, o,
new object[] { "UserName", "Password", @"C:\pdf2vec.exe ""C:\test.pdf"" ""C:\out.svg""" });
otype = null;
}
}
}
~~~~~~~~~~~~~~~~~

Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please by following steps to solve this 1314 Error,

ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~

The output SVG file converted by this software will not be too big. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf to vector converter

Bold text problem when convert PDF file to XPS file by PDF to Vector Converter Command Line

When converting a new version of PDFs with pdf2vec to xps. The result is a blurry and the text is not selectable. This is a new pdf that was exported from our recently upgraded accounting system.

Customer
----------------------------------

You can run following command line to convert your PDF file to XPS file with normal fonts,

pdf2vec.exe -winfont -winfont2 D:\downloads\sample.pdf D:\downloads\sample.xps

-winfont : use Windows fonts to instead of embedded fonts
-winfont2 : force to use Windows fonts to instead of all embedded fonts

"-winfont -winfont2" options will use Windows System fonts to instead of PDF fonts, we hoping these options will useful to you.

This is original PDF file, as you see, text contents are look perfect,

image

Convert this PDF file to XPS file by following command line,

pdf2vec.exe D:\downloads\sample.pdf D:\downloads\sample.xps

The text contents are bold and blurry, the text contents are not selectable, this is because pdf2vec.exe does use pdf embedded fonts to render text contents, the characters are become outlines in the XPS file, so you can't extract text contents from this XPS file.

image

In order to solve this problem, we need use Windows fonts to instead of PDF Embedded fonts, pdf2vec.exe is provide -winfont and -winfont2 options to use Windows fonts to instead of PDF Embedded fonts, you can run following command line to create a XPS file with Windows system fonts,

pdf2vec.exe -winfont -winfont2 D:\downloads\sample.pdf D:\downloads\sample.xps

Now we can select contents in XPS file easily, please refer to following screenshot,

image

VeryDOC

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