GithubHelp home page GithubHelp logo

pdfix / pdfix_sdk_builds Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 1.0 12 MB

PDFix SDK release builds

Home Page: https://pdfix.net

pdf sdk accessibility pdf-converter pdf-document-processor pdf-manipulation

pdfix_sdk_builds's Introduction

Getting started with PDFix SDK

PDFix SDK is a cross-platform PDF processing tool, that offers various ways of the integration. A Command-line interface PDFix CLI is a quick and easy way to add PDF processing functionality into various workflows without coding.

Developers can use the PDFix SDK with programming languages to take advandatage of the full control over the PDF documents.

Check the system requirements to avoid any problems with running PDFix SDK on your system.

Integration using the CLI

PDFix offers straightforward, rapid, and automated PDF processing via the command-line interface.

$ ./pdfix_app make-accessible -i test.pdf -o output.pdf

For more CLI options please check the PDFix SDK Command-line interface. The CLI application is part of the downloadable package available on website.

Integration using the SDK

c#

Import NuGet package PDFix.SDK

using PDFixSDK.Pdfix;

static void Main() {
   var pdfix = new Pdfix();
   var doc = pdfix.OpenDoc("Sample.pdf", "");
   // do your stuff
   doc.Close();                                       
}

Check more github examples on https://github.com/pdfix/pdfix_sdk_example_dotnet

c++

#include "Pdfix.h"

Pdfix_statics;

int main() {
   if (Pdfix_init(Pdfix_MODULE_NAME))) {
      auto pdfix = GetPdfix();
      auto doc = pdfix->OpenDoc(L"Sample.pdf", L"");
      // do your stuff
      doc->Close();                                   
   }
}

Check more github examples on https://github.com/pdfix/pdfix_sdk_example_cpp

java

import net.pdfix.pdfixlib.*;

public static void main() {
   System.loadLibrary("pdfix");                       
   Pdfix pdfix = new Pdfix();   
   PdfDoc doc = pdfix.OpenDoc("Sample.pdf", "");      
   // do your stuff
   doc.Close();
}

Check more github examples on https://github.com/pdfix/pdfix_sdk_example_java

python

Import Python Package pdfix-sdk

from pdfixsdk.Pdfix import *

pdfix  = GetPdfix()
doc = pdfix.OpenDoc("Sample.pdf", "")
// do your stuff
doc.close()

Check more github examples on https://github.com/pdfix/pdfix_sdk_example_python

Multi-threaded environments

The SDK is designed for single-threaded processing, meaning only one API method can be executed at a time within a single process. Any methods invoked from other threads will wait until the preceding one completes.

If there's a need to handle multiple concurrent calls, it's advised to utilize separate processes instead.

Prerequisites

Trial/Lite license limitations

  • Methods extracting text from the PDF content randomly replace characters with "*"
  • Rasterized images may contain logo watermark
  • Saved PDFs may have redacted parts of the content

License Management

PDFix SDK can be autorized using an activation key or using the name, key pair.

Standard License Activation

Software can be authorized using an activation key. After activating the software operates on the computer according to the license. Internet connection is necessary for occasional license updates.

Windows Virtual Machines

In the case of error: 1239 "VM detection dll not found or tempered" download the VM detection dll and copy to the same directory as pdfix_app.

Online Activation

Using the command line:

$ ./pdfix_app license --activate XXXX-XXXX-XXXX-XXXX

Code example: c++, c#

Note to PHP users: Depending on the configuration the PHP may operate in a safe mode under a virtual user (e.g. www-data). In such a case the license should be activated separately with PHP.

Offline activation

Step 1: Create activation request file

./pdfix_app license --activate XXXX-XXXX-XXXX-XXXX --request --license-path license.req

Step 2: Send the license.req file to [email protected] along with the license key to create a license activation file. Once you receive the license.lic file follow to the next step.

Step 3: Activate the license from file

./pdfix_app license --activate XXXX-XXXX-XXXX-XXXX --license-path license.lic

Code examples: (follow the same steps as with CLI)

c++ samples StandardLicenseCreateOfflineActivationFile.cpp, StandardLicenseActivateOffline.cpp

Deactivating the standard license

Note: When moving license to another computer the license should be deactivated.

Online deactivation

Command line example:

$ ./pdfix_app license --deactivate

Code example: c++

Offline deactivation

Command line example:

$ ./pdfix_app license --deactivate --license-path deactivate.req

Code example: c++

License file local storage

The activated license information is stored on computer under the current user account. The default local license storage is in the following directories:

  • Windows: <user>\AppData\Local\.pdfixsdk
  • MacOS: <user>/Library/Application Support/.pdfixsdk
  • Linux: <user>/.pdfixsdk

Custom location can be set by setting the license data path and file name in the settings JSON as follows:

{
    "user": {
        "license_data_path" : "<local_folder>",
        "license_file_name" : "MyLicenseLey.txt"
    }
}

Command-line use:

$ ./pdfix_app [SUBCOMMAND] [OPTIONS] --settings-path <path_to_json>

Updating the standard license

The license is updated automatically when running the software. When an instant update is needed the following command should be executed:

Command line example:

$ ./pdfix_app license --update

Code example: c++

Account license authorization

Software can be authorized using a name and key. The name key pair should be used every time the PDFix SDK is used.

Command line example:

$ ./pdfix_app extract-data --input test.pdf --email your@email --key XXXXXXXXXXXXXX

Code example: c#

License Status

The current license status can be saved into JSON.

Command line example:

$ ./pdfix_app license --status 

Code example: c++

Satus output:

{
    "product": {
        "name": "PDFix SDK",
        "option": "Enterprise",
        "version": "6.4.0"
    },
    "status": {
        "authorized": "true"
    },
    "license": {
        "type": "standard",
        "active": "true",
        "key": "XXXX-XXXX-XXXX-XXXX",
        "max_activations": "5",
        "total_activations": "2",
        "days_remaining": "51",
        "expired": "false",
        "expiration_date": "2021-01-09",
        "days_since_last_check": "1",
        "pages": {
            "type": "2",
            "max_consumption": "300000",
            "total_consumption": "37024",
            "local_consumption": "5"
        },
        "enterprise": {
            "type": "1"
        }
    }
}

Support

In case of any questions please contact support.

pdfix_sdk_builds's People

Contributors

dodobasnak avatar emkaroly avatar jozefbaranec avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

weixuan2008

pdfix_sdk_builds's Issues

documentation is very incomplete

The documentation is shockingly and disappointingly incomplete.

Here is an example. It is not clear how the parameters could work. The parameters have no error message and are not self-explanatory at all:

### `tag`
Tag operations on PDF
_Options:_
```
-i,--input TEXT:FILE Input file
-o,--output TEXT Output file
-r,--remove
-a,--annotation
-f,--artefact
-g,--heading
-d,--reading-order
-s,--read-struct-tree
-e,--edit-struct-tree
-t,--table-as-figure
```

I don't have any clue, how to edit the struct tree...

Unfortunately, the product isn't open source, so nobody can help to improve the documentation except to find possible typos - is it pocess or processs?

### `pocess-control`
test commands
_Options:_
```
-i,--input TEXT:FILE Input file
```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.