...

Guides for PDF library

How to use Flyingbee PDF Conversion SDK.


1. Prerequisites for Linux

2.1 Install Fontconfig

2.2 Install fonts to Linux

3. Set an executable program as a command in the terminal

4. Quick Start Guide

Update date: 2024-09-29 16:53:08

Want to Try?

Try Flyingbee PDF Converter Online for Free, play with PDF to MS Office (.docx, .xlsx, .pptx) conversion on Web.

Launch Web Demo

Powered by Flyingbee PDF Conversion SDK

3. Set an executable program as a command in the terminal


james wei 2024-09-29 16:51:45

In Linux, if you want to set an executable program like FPPDFConverter.out to be directly used as a command in the terminal, you can achieve this through several methods. Here are some common approaches:

1. Add the Directory of the Executable to the PATH Environment Variable

  1. Open your terminal.

  2. Use the echo $PATH command to view the current PATH environment variable.

  3. Use the export PATH=$PATH:/path/to/your/directory command to add the directory where the executable file is located to the PATH, where /path/to/your/directory is replaced with the directory containing your executable file.

  4. Now, you should be able to run your program directly by its filename.

Note: This change is only effective for the current terminal session. If you want the change to be permanent, you can add the export command to your ~/.bashrc or ~/.profile file.

2. Create a Symbolic Link to Your Executable

If you want to place the FPPDFConverter.out command in a standard directory such as /usr/local/bin, you can create a symbolic link:

  1. Open the terminal.

  2. Use the ln -s /path/to/your/FPPDFConverter.out /usr/local/bin/FPPDFConverter command to create a symbolic link, where /path/to/your/FPPDFConverter.out is the path to your executable file, and FPPDFConverter is the command name you want to use in the terminal.

  3. Now, you should be able to run your program directly using the FPPDFConverter command.

Note: This method requires administrator privileges (use sudo), as /usr/local/bin is typically only writable by administrators.

3. Use an Alias

If you only need it temporarily or don't want to change the environment variable, you can also add an alias to your ~/.bashrc or ~/.profile file:

  1. Open the terminal.

  2. Use a text editor to open the ~/.bashrc or ~/.profile file, such as nano ~/.bashrc.

  3. At the end of the file, add alias FPPDFConverter='/path/to/your/FPPDFConverter.out', where /path/to/your/FPPDFConverter.out is replaced with the path to your executable file.

  4. Save and close the file.

  5. Run source ~/.bashrc in the terminal or reopen the terminal to apply the changes.

Now, whenever you want to run FPPDFConverter.out, you can simply enter FPPDFConverter in the terminal.

We sincerely thank you for choosing Flyingbee PDF Converter! We hope our product brings convenience to your work and studies.



2.2 Install fonts to Linux
4. Quick Start Guide

Apple, the Apple logos, MacBook, iPad, iPhone, Apple Watch, and Apple Vision Pro are trademarks of Apple Inc., registered in the U.S. and other countries. App Store and Mac App Store is a service mark of Apple Inc., registered in the U.S. and other countries.
© 2014- 2024 Flyingbee Software, All Right Reserved.
United StatesUnited States

We uses cookies to give you the best experience, analyze traffic, and personalize content. By continuing using our Site, you agree to our use of cookies. The information collected might relate to you, your preferences, or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Read our Privacy Policy or manage your cookie preferences. If you would like to submit an opt-out request with respect to your non-cookie personal information (e.g., your email address), find our support email address to opt-out of sale/sharing/targeting with respect to non-cookie personal information.