-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq.html
43 lines (40 loc) · 12 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="generator" content="VuePress 2.0.0-rc.20" />
<style>
:root {
--vp-c-bg: #fff;
}
[data-theme='dark'] {
--vp-c-bg: #1b1b1f;
}
html,
body {
background-color: var(--vp-c-bg);
}
</style>
<script>
const useChoice = localStorage.getItem('vuepress-color-scheme')
const systemStatus =
'matchMedia' in window
? window.matchMedia('(prefers-color-scheme: dark)').matches
: false
if (useChoice === 'light') {
document.documentElement.dataset.theme = 'light'
} else if (useChoice === 'dark' || systemStatus) {
document.documentElement.dataset.theme = 'dark'
}
</script>
<link rel="icon" href="https://static.pdfai.cn/favicon.ico"><title>FAQ | 宝石PDF - 文档</title><meta name="description" content="宝石PDF文档和API">
<link rel="preload" href="/docs/assets/style-Cmsfp_Jz.css" as="style"><link rel="stylesheet" href="/docs/assets/style-Cmsfp_Jz.css">
<link rel="modulepreload" href="/docs/assets/app-7z1HJ4Kj.js"><link rel="modulepreload" href="/docs/assets/faq.html-DQxFw7H6.js">
<link rel="prefetch" href="/docs/assets/index.html-CBom5b6P.js" as="script"><link rel="prefetch" href="/docs/assets/deployment.html-5el5FBQ-.js" as="script"><link rel="prefetch" href="/docs/assets/get-started.html-Bln3KS48.js" as="script"><link rel="prefetch" href="/docs/assets/note.html-3gtx-uTu.js" as="script"><link rel="prefetch" href="/docs/assets/readme.bak.html-B2Gwd-bU.js" as="script"><link rel="prefetch" href="/docs/assets/a5_to_a4.html-i1U1EM1J.js" as="script"><link rel="prefetch" href="/docs/assets/comcompress_pdf.html-Cvfp1rdU.js" as="script"><link rel="prefetch" href="/docs/assets/image_to_pdf.html-B6TgjF_l.js" as="script"><link rel="prefetch" href="/docs/assets/merge_pdf.html-BVaSS9C1.js" as="script"><link rel="prefetch" href="/docs/assets/pdf_extract_image.html-DBlvOXHT.js" as="script"><link rel="prefetch" href="/docs/assets/pdf_to_grid.html-DghRAXRQ.js" as="script"><link rel="prefetch" href="/docs/assets/pdf_to_image.html-A64ybWxH.js" as="script"><link rel="prefetch" href="/docs/assets/rotate_pdf.html-BCMyXVyi.js" as="script"><link rel="prefetch" href="/docs/assets/split_pdf.html-MmTnTGIZ.js" as="script"><link rel="prefetch" href="/docs/assets/svg_to_pdf.html-BbKEuSdq.js" as="script"><link rel="prefetch" href="/docs/assets/wechat_to_pdf.html-CdIKM_RD.js" as="script"><link rel="prefetch" href="/docs/assets/404.html-B2SFGoFf.js" as="script"><link rel="prefetch" href="/docs/assets/setupDevtools-QXEOFQJV-BPdIggHa.js" as="script">
</head>
<body>
<div id="app"><!--[--><div class="vp-theme-container external-link-icon" vp-container><!--[--><header class="vp-navbar" vp-navbar><div class="vp-toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a class="route-link" href="/docs/"><img class="vp-site-logo" src="https://static.pdfai.cn/static/logo/logo_300.svg" alt="宝石PDF - 文档"><span class="vp-site-name vp-hide-mobile" aria-hidden="true">宝石PDF - 文档</span></a></span><div class="vp-navbar-items-wrapper" style=""><!--[--><!--]--><!----><!--[--><!--]--><button type="button" class="vp-toggle-color-mode-button" title="toggle color mode"><svg class="light-icon" viewbox="0 0 32 32" style=""><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg class="dark-icon" viewbox="0 0 32 32" style="display:none;"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="vp-sidebar-mask"></div><!--[--><aside class="vp-sidebar" vp-sidebar><!----><!--[--><!--]--><ul class="vp-sidebar-items"><!--[--><li><p tabindex="0" class="vp-sidebar-item vp-sidebar-heading active">指南 <!----></p><ul style="" class="vp-sidebar-children"><!--[--><li><a class="route-link auto-link vp-sidebar-item" href="/docs/get-started.html" aria-label="快速开始"><!--[--><!--[--><!--]--><!--]-->快速开始<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link route-link-active auto-link vp-sidebar-item active" href="/docs/faq.html" aria-label="FAQ"><!--[--><!--[--><!--]--><!--]-->FAQ<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/note.html" aria-label="更新日志"><!--[--><!--[--><!--]--><!--]-->更新日志<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/deployment.html" aria-label="私有化部署"><!--[--><!--[--><!--]--><!--]-->私有化部署<!--[--><!--[--><!--]--><!--]--></a><!----></li><!--]--></ul></li><li><p tabindex="0" class="vp-sidebar-item vp-sidebar-heading">API <!----></p><ul style="" class="vp-sidebar-children"><!--[--><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/pdf_to_image.html" aria-label="PDF转图片"><!--[--><!--[--><!--]--><!--]-->PDF转图片<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/image_to_pdf.html" aria-label="图片转PDF"><!--[--><!--[--><!--]--><!--]-->图片转PDF<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/pdf_extract_image.html" aria-label="PDF提取图片"><!--[--><!--[--><!--]--><!--]-->PDF提取图片<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/a5_to_a4.html" aria-label="A5合并到A4"><!--[--><!--[--><!--]--><!--]-->A5合并到A4<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/rotate_pdf.html" aria-label="PDF旋转"><!--[--><!--[--><!--]--><!--]-->PDF旋转<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/merge_pdf.html" aria-label="PDF合并"><!--[--><!--[--><!--]--><!--]-->PDF合并<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/split_pdf.html" aria-label="PDF拆分"><!--[--><!--[--><!--]--><!--]-->PDF拆分<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/pdf_to_grid.html" aria-label="PDF网格排列"><!--[--><!--[--><!--]--><!--]-->PDF网格排列<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/comcompress_pdf.html" aria-label="PDF压缩"><!--[--><!--[--><!--]--><!--]-->PDF压缩<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/wechat_to_pdf.html" aria-label="公众号转PDF"><!--[--><!--[--><!--]--><!--]-->公众号转PDF<!--[--><!--[--><!--]--><!--]--></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/docs/api/svg_to_pdf.html" aria-label="SVG转PDF"><!--[--><!--[--><!--]--><!--]-->SVG转PDF<!--[--><!--[--><!--]--><!--]--></a><!----></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="vp-page"><!--[--><!--]--><div vp-content><!--[--><!--]--><div><h1 id="faq" tabindex="-1"><a class="header-anchor" href="#faq"><span>FAQ</span></a></h1><h2 id="api-接口升级说明" tabindex="-1"><a class="header-anchor" href="#api-接口升级说明"><span>API 接口升级说明</span></a></h2><p><strong>老用户免费部署私有化助力升级</strong></p><p>从 EasyYun 接口升级变化</p><ul><li>请求的域名从 <code>https://rest-api.easyyun.com/v1/router/rest</code> 调整为 <code>https://pdf-api.pdfai.cn/v1/pdf/</code>+每个功能缀</li><li>每个功能的接口是单独 URL,接口与接口之间没有任何关联</li><li>系统请求头 <code>application/x-www-form-urlencoded</code> 调整为 <code>application/json</code>,返回结果格式还是 JSON,具体可以看代码例子</li><li>返回结果 code 值类型为调整为<code>int</code></li><li>补充每个功能的开发语言的代码例子,降低门槛</li><li>历史的接口部分功能有兼容,比如 <code>https://pdf-api.pdfai.cn/v1/router/rest</code> ,此域名接口依然有效,待过渡期后,此路由会下线</li><li>没有测试环境,正式环境所见即所得</li></ul><h2 id="文件删除时间" tabindex="-1"><a class="header-anchor" href="#文件删除时间"><span>文件删除时间</span></a></h2><p>上传的文件默认 1 天自动删除,本工具仅做转换服务,不做存储服务,文件请自行下载保存。如果需要单独存储,可私有化部署,单独配置阿里云OSS和腾讯云COS。</p><h2 id="是否收费" tabindex="-1"><a class="header-anchor" href="#是否收费"><span>是否收费</span></a></h2><p>云端API免费,不提供任何承诺稳定性保障。建议使用<a class="route-link" href="/docs/deployment.html">私有化部署</a>。</p><p>市面上已经有非常成熟的开源产品,比如:Stirling-PDF、PdfCpu、MuPDF,大家可以尝试。</p><h2 id="关于技术选型" tabindex="-1"><a class="header-anchor" href="#关于技术选型"><span>关于技术选型</span></a></h2><p>2022.3-2025.2 差不多 3 年的时间采用所谓时髦的技术:Docker、Kubernetes、Golang、Python、Vue、Electron 、MySQL、Redis、Nginx 等。</p><p>然而,时髦的技术并为解决问题,只会让技术问题变得更复杂。</p><p>SO,这次的重新设计,为了简化问题。</p><h3 id="只为做减法" tabindex="-1"><a class="header-anchor" href="#只为做减法"><span>只为做减法</span></a></h3><ul><li>开发流程上每个功能就只有 1 个接口</li><li>去掉异步的功能,现实中,大部分也用不上</li><li>去掉 MySQL,去掉 Redis,的确也用不上,加上数据库只会让项目更复杂</li><li>去掉 Docker,去掉 Kubernetes,完全没必要</li><li>去掉 Electron,虽然使用 tauri.app 也简单,为了体验,去掉了电脑客户端</li><li>服务器去掉依赖的一些命令行,比如 pdfcpu、mutools 等。</li><li>接口文档,为了简化,采用了 VuePress</li><li>去掉了Office类的接口,这个必须使用付费厂商的才有产品体验,比如金山文档、腾讯文档等</li></ul></div><!--[--><!--]--></div><footer class="vp-page-meta"><!----><div class="vp-meta-item git-info"><!----><!----></div></footer><nav class="vp-page-nav" aria-label="page navigation"><a class="route-link auto-link prev" href="/docs/get-started.html" aria-label="快速开始"><!--[--><div class="hint"><span class="arrow left"></span> Prev</div><div class="link"><span class="external-link">快速开始</span></div><!--]--></a><a class="route-link auto-link next" href="/docs/note.html" aria-label="更新日志"><!--[--><div class="hint">Next <span class="arrow right"></span></div><div class="link"><span class="external-link">更新日志</span></div><!--]--></a></nav><!--[--><!--]--></main><!--]--></div><!--[--><!----><!--]--><!--]--></div>
<script type="module" src="/docs/assets/app-7z1HJ4Kj.js" defer></script>
</body>
</html>