Skip to content

Question: Ghostscript, OCRmypdf, unoconvert, rar #4707

@topoldo

Description

@topoldo

Hi.
I installed the new Stirling-PDF (portable server) for Windows.
At first I installed v. 1.4.0 and then 1.5.0 under Windows 11 25H2.
While StirlingPDF versions until 1.3.x reported NO WARNING when I launched them because I had also installed all the additional tools needed to make it work as described here, new versions gave me the surprise that it seems I need to get and configure at least 3 more programs, to have all the features included with versions 1.4.0+

A screenshot of the log during startup of PDF-server is shown in the image below.
Image

As you can see Stirling-PDF claims for the lack of Ghostscript, OCRmypdf and rar.
But the Stirling-pdf for Windows howto is still the same of the version 1.3.x.
No new tricks were added since then.

Beside, there is a fourth and last warning concerning unoconvert.
In this case it was not simple solving the PDF to Word conversion in Windows even using Stirling-PDF v. 1.3.0 and lower.

However by reading some issue questions about this subject, I was able to solve this problem by using this trick:

LibreOffice (LO)

  • If you do not have LO installed yet, download from its official site and install it.
  • To make LO to interact with Stirling-PDF you need to use the "UNO" module of the python version shipped with LO and NOT with other python(s) already present on the PC. Otherwise it is a nightmare!
    This is what you need to do:
  1. Start an instance of LO listening on a socket.
    This can be done most easily using the command line or using a shell script:
C:\ProgramFiles\LibreOffice\program\>start soffice --accept=socket,host=localhost,port=2002;urp;
  1. Next, run the the python version shipped with LO which has its UNO module already installed by default:
    C:\ProgramFiles\LibreOffice\program\>python.exe >>> import uno

So my final question is:
"If I want to have all the features of Stirling-PD (local server) 1.4.0+ in Windows:
a. Do have I to install Ghostscript, OCRmypdf and rar? If so, which tricks I need to use?
b. What about unoconvert vs "UNO" module of the python shipped with LO?"

Regards,
Topoldo

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions