@@ -211,32 +211,41 @@ sudo wget https://files.stirlingpdf.com/Stirling-PDF.jar
211211sudo chmod +x Stirling-PDF.jar
212212```
213213
214- ### Step 5: Move jar to desired location
214+ ### Step 4b: Clone the Stirling-PDF Repository
215215
216- You can move this file to a desired location, for example, ` /opt/Stirling-PDF/ ` .
217- You must also move the Script folder within the Stirling-PDF repo that you have downloaded to this directory.
218- This folder is required for the python scripts using OpenCV.
216+ You need the repository to get the ` scripts ` folder, which contains Python scripts used by OpenCV for certain PDF operations.
217+
218+ ``` bash
219+ git clone https://github.com/Stirling-Tools/Stirling-PDF.git
220+ ```
221+
222+ ### Step 5: Move JAR and Scripts to Desired Location
223+
224+ Move the downloaded JAR file and the ` scripts ` folder from the cloned repository to a desired location, for example, ` /opt/Stirling-PDF/ ` .
225+ The ` scripts ` folder is required for the Python scripts using OpenCV.
219226
220227<Tabs groupId =" user-type " >
221228 <TabItem value =" debian " label =" Debian (Root) " >
222229 ```bash
223- sudo mkdir /opt/Stirling-PDF &&\
224- sudo mv ./build/libs/ Stirling-PDF-* .jar /opt/Stirling-PDF/ &&\
225- sudo mv scripts /opt/Stirling-PDF/ &&\
226- echo "Scripts installed."
230+ sudo mkdir -p /opt/Stirling-PDF &&\
231+ sudo mv Stirling-PDF.jar /opt/Stirling-PDF/ &&\
232+ sudo cp -r Stirling-PDF/ scripts /opt/Stirling-PDF/ &&\
233+ echo "JAR and scripts installed."
227234 ```
228235 </TabItem >
229236 <TabItem value =" fedora " label =" Fedora (Root) " >
230237 ```bash
231- sudo mkdir /opt/Stirling-PDF &&\
232- sudo mv ./build/libs/ Stirling-PDF-* .jar /opt/Stirling-PDF/ &&\
233- sudo mv scripts /opt/Stirling-PDF/ &&\
234- echo "Scripts installed."
238+ sudo mkdir -p /opt/Stirling-PDF &&\
239+ sudo mv Stirling-PDF.jar /opt/Stirling-PDF/ &&\
240+ sudo cp -r Stirling-PDF/ scripts /opt/Stirling-PDF/ &&\
241+ echo "JAR and scripts installed."
235242 ```
236243 </TabItem >
237244 <TabItem value =" nix " label =" Nix (Non-root) " >
238245 ```bash
239- mv ./build/libs/Stirling-PDF-*.jar ./Stirling-PDF-*.jar
246+ mkdir -p ~/Stirling-PDF &&\
247+ mv Stirling-PDF.jar ~/Stirling-PDF/ &&\
248+ cp -r Stirling-PDF/scripts ~/Stirling-PDF/
240249 ```
241250 </TabItem >
242251</Tabs >
0 commit comments