Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Libraries (Linux)
#18
 Alternative to _PrintImage for Linux and WSL
Hi everyone,

Since the _PrintImage statement isn't natively supported in Linux, I’ve developed an alternative for you to use. This program works seamlessly in both WSL and Linux Mint.

Key Features:

Set the number of pages and print area.

Support for duplex (double-sided) printing.

Toggle between color and grayscale.

Printer Selection: Unlike the native Windows _PrintImage statement which is limited to the default printer - this tool actually lets you choose which device you want to print to.

Feedback Needed: I only have a black-and-white printer available, so I would really appreciate it if you could test the color functionality and provide some feedback.

Technical Details: The dependencies and instructions for compiling the .so library are listed at the beginning of the BAS program code. The attached ZIP file includes:

 .so library, C source code for the library, BAS program.

The .BAS program handles the page generation itself, so you should find it very easy to customize to your needs.

One final tip: Always remember to use a white background in your designs to avoid unnecessary printing costs!

Looking forward to your feedback.


Attached Files Thumbnail(s)
       

.zip   Linux_PrintImage.zip (Size: 19.74 KB / Downloads: 6)


Reply


Messages In This Thread
Dynamic Libraries (Linux) - by Petr - 12-15-2025, 11:53 AM
RE: Dynamic Libraries (Linux) - by luke - 12-15-2025, 12:33 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 04:32 PM
RE: Dynamic Libraries (Linux) - by SMcNeill - 12-15-2025, 06:05 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 06:20 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 06:56 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 07:19 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-16-2025, 10:51 AM
RE: Dynamic Libraries (Linux) - by Petr - 12-22-2025, 12:48 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-27-2025, 08:53 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-27-2025, 10:10 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-28-2025, 01:37 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-28-2025, 06:01 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 04:56 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 08:55 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 09:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic Libraries (Windows) Petr 50 3,464 02-24-2026, 06:38 PM
Last Post: Petr

Forum Jump:


Users browsing this thread: 1 Guest(s)