Comments (4)
The command line for executing the user program is as follows:
UserProgram.exe
-DocumentName DOCUMENT_NAME
-InputFile C:\ProgramData\CubeSoft\CubeVP\PSTF012.tmp
-Digest SHA256_HASH
-UserName USER_NAME
-MachineName MACHINE_NAME
-DeleteOnClose
-Exec Path\To\UserProgram.exe
Therefore, args[0] is "-DocumentName", args[1] is "DOCUMENT_NAME", args[2] is "-InputFile", ..., and so on.
Note that this order may be changed in future versions, so please do not parse it completely fixed. (When parsing, use the "-" option base.)
Here is a description of each argument:
- DocumentName
An application executes a print command by specifying a value called the "document name". This argument passes the specified document name to the user program. - InputFile
This represents the path of the temporary file where the virtual printer saves the print data (PostScript). The temporary file is saved in the folder specified as the working folder (Temp) when the virtual printer is installed. - Digest
This represents the result of calculating the SHA-256 hash value for the content of the temporary file. This value is used to detect corruption or tampering of the print data.
Example: 84e72201691f3869287ec95923c9b2b102f188e758d467d66b7d77690dc61048 - UserName
This represents the username when the print command was executed. - MachineName
This represents the name of the terminal where the print command was executed. - DeleteOnClose
This argument tells the virtual printer to delete the file specified in InputFile. The virtual printer exits with the generated temporary file in its current state. Therefore, any post-processing such as deleting the temporary file is the responsibility of the user program. - Exec
This specifies the path to the user program itself. This argument is used by the program CubeProxy.exe, which switches from the SYSTEM account to the logged-on user account. Therefore, if the user program is executed directly without going through CubeProxy.exe, Exec may not be specified.
from cube.vp.docs.
Thank you for your response.
I want to convert Excel(.xlsx) to PDF using this program, but would it be difficult to convert?
from cube.vp.docs.
Yes. Since the CubeVP (CubePDF SDK) itself is a PostScript to PDF conversion program, it must be converted to PostScript format once in order to use the program. Since this is currently handled by the virtual printer part, it is difficult to convert directly from Excel to PDF.
from cube.vp.docs.
OK. I understand.
Thank you for your response.
from cube.vp.docs.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cube.vp.docs.