<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>自行架設 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/%E8%87%AA%E8%A1%8C%E6%9E%B6%E8%A8%AD/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Sun, 14 Sep 2025 10:19:17 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>自行架設 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Stirling PDF: 自行架設全方位免費 PDF 線上工具</title>
		<link>https://noter.tw/12976/stirling-pdf-comprehensive-pdf-tool/</link>
					<comments>https://noter.tw/12976/stirling-pdf-comprehensive-pdf-tool/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Sun, 14 Sep 2025 10:19:15 +0000</pubDate>
				<category><![CDATA[技術相關]]></category>
		<category><![CDATA[軟體、工具]]></category>
		<category><![CDATA[軟體分享]]></category>
		<category><![CDATA[PDF 處理]]></category>
		<category><![CDATA[自行架設]]></category>
		<category><![CDATA[Adobe Acrobat Pro Alternative]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[self-hosted]]></category>
		<category><![CDATA[全功能 PDF]]></category>
		<category><![CDATA[全方位 PDF]]></category>
		<category><![CDATA[Adobe Acrobat]]></category>
		<category><![CDATA[PDF 合併]]></category>
		<category><![CDATA[PDF 加密]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[PDF 刪除]]></category>
		<category><![CDATA[PDF 線上]]></category>
		<category><![CDATA[Stirling PDF]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=12976</guid>

					<description><![CDATA[<p>小蛙常常收到有要處理 PDF 的需求，像是合併、拆分、刪除其中一頁、加密 &#8230; 等，在沒有 Adobe Acrobat Pro 情況下，一般小蛙會直接使用 Mac 來處理，若是非機密性的 P&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/12976/stirling-pdf-comprehensive-pdf-tool/" data-wpel-link="internal">Stirling PDF: 自行架設全方位免費 PDF 線上工具</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>小蛙常常收到有要處理 PDF 的需求，像是合併、拆分、刪除其中一頁、加密 &#8230; 等，在沒有 Adobe Acrobat Pro 情況下，一般小蛙會直接使用 Mac 來處理，若是非機密性的 PDF 才敢使用線上工具處理，前陣子好友分享一套全方位免費 PDF 線上工具 Stirling PDF，重點是可以自己架設！這樣就不怕機密資料流出了，這篇文章記錄安裝設定的過程。</p>



<span id="more-12976"></span>



<h2 class="wp-block-heading para">架設 Stirling PDF</h2>



<p>想使用現成的可到 <a href="https://www.stirlingpdf.com/" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Stirling PDF 官網<span class="wpel-icon wpel-image wpel-icon-6"></span></a>，或<a href="https://github.com/Stirling-Tools/Stirling-PDF" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">社群免費自架版<span class="wpel-icon wpel-image wpel-icon-6"></span></a>。</p>



<p>在得知 Stirling PDF 之後，立刻去找好朋友 ChatGPT 聊聊，得知 2 種安裝方式：(1) 直接安裝在系統上；(2) 透過 Docker 安裝。小蛙要安裝的這台主機正好有 Docker，於是使用了這個較簡單的方法。</p>



<h3 class="wp-block-heading para">1. 拉取 docker image</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">docker pull stirlingtools/stirling-pdf:latest</pre>



<h3 class="wp-block-heading para">2. 建立所需的資料夾</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mkdir -p ~/StirlingPDF/{trainingData,extraConfigs,customFiles,logs,pipeline}</pre>



<h3 class="wp-block-heading para">3. 拉取 docker image</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">docker run -d \
  --name stirling-pdf \
  -p 8080:8080 \
  -v ~/StirlingPDF/trainingData:/usr/share/tessdata \
  -v ~/StirlingPDF/extraConfigs:/configs \
  -v ~/StirlingPDF/customFiles:/customFiles/ \
  -v ~/StirlingPDF/logs:/logs/ \
  -v ~/StirlingPDF/pipeline:/pipeline/ \
  -e DOCKER_ENABLE_SECURITY=false \
  -e LANGS=en_US \
  stirlingtools/stirling-pdf:latest</pre>



<h3 class="wp-block-heading para">4. 測試</h3>



<p>輸入 http://localhost/ 就可以看到畫面了</p>



<h2 class="wp-block-heading para">設定 Nginx 反向代理</h2>



<p>小蛙的主機使用 nginx 反向代理，還需要在 nginx 設定檔中加入以下設定</p>



<pre class="EnlighterJSRAW" data-enlighter-language="ini" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">server {
    listen 443 ssl;
    server_name __your_domain__;  # 替換成自己的域名

    client_max_body_size 300M;    # 上傳 PDF 的大小，可調整

    ssl_certificate         /etc/nginx/ssl/__your_cert__;
    ssl_certificate_key     /etc/nginx/ssl/__your_key__;

    location / {
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_pass http://localhost:8080;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
    }
}</pre>



<p>重啟 nginx 後，就能使用上面設定的網址來訪問 Stirling PDF 囉 ~ 以後處理 PDF 簡單輕鬆又安全！幾乎所有常見的功能都有了，大推。如果不放心這個工具放在網路上會被濫用，還可以透過 <a href="https://noter.tw/12974/cloudflare-zero-trust/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">使用 Cloudflare 使用 Zero Trust 原則保護特定網址</a> 多做一層防護喔！</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AP1GczOUEJBqlhNi9BTtExhiF7gtrAt76N07RC0DA2J6PH_Uhad8gP_wZQHANNovV2U-H-vvNh51BBHsfRCIl3bYOJ4rLQ-6d2Jsq-RwjLv9OXBPdUPJ42WvuikCopAJSX0LXiY2tH4hWy75Z8kROI1CeJBh=w1265-h940-rw" alt="AP1GczOUEJBqlhNi9BTtExhiF7gtrAt76N07RC0DA2J6PH Uhad8gP wZQHANNovV2U H vvNh51BBHsfRCIl3bYOJ4rLQ 6d2Jsq RwjLv9OXBPdUPJ42WvuikCopAJSX0LXiY2tH4hWy75Z8kROI1CeJBh=w1265 h940 rw Stirling PDF: 自行架設全方位免費 PDF 線上工具" title="Stirling PDF: 自行架設全方位免費 PDF 線上工具"></figure></div><p>這篇文章 <a rel="nofollow" href="https://noter.tw/12976/stirling-pdf-comprehensive-pdf-tool/" data-wpel-link="internal">Stirling PDF: 自行架設全方位免費 PDF 線上工具</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/12976/stirling-pdf-comprehensive-pdf-tool/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
