百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pdfy

> 编程语言
开源

PDFy 所使用的平台是一个免费的即时 PDF 托管服务。

194 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

PDFy 所使用的平台是一个免费的即时 PDF 托管服务。

PDFy

The PDF hosting software powering http://pdf.yt/.

Dependencies

  • A PHP-capable HTTPd
  • PHP
  • MySQL
  • ImageMagick
  • php5-mysql
  • php5-imagick

For the Internet Archive auto-mirror script (optional):

  • Python
  • The internetarchive Python module (pip install internetarchive)
  • The oursql Python module (pip install internetarchive, depends on libmysqlclient being installed)
  • A cron daemon

Setup

If you wish to run PDFy yourself, this is how:

  1. Clone this repository - we'll assume you'll be cloning it to a folder in /var/sites, so the resulting folder would be /var/sites/pdfy.
  2. Clone the CPHP repository to /var/sites - this will become /var/sites/cphp.
  3. Switch the CPHP repository to the feature/formhandler branch - this is temporary until experimental CPHP features are merged into the master branch.
  4. Copy config.json.example to config.json and configure the database.
  5. Create a folder /var/sites/pdfy/storage and ensure that it is owned by the user and group that your PHP / HTTPd run under. This is where PDF files will be stored.
  6. Assign ownership of /var/sites/pdfy/public_html/static/thumbs to that same user and group.
  7. Add the relevant configuration to your HTTPd (see below).
  8. Replace instances of "https://pdf.yt/" in the code (in particular in embed codes) with the host that your instance will be running at.
  9. ????
  10. PDFy!

HTTPd configuration

CPHP, the PHP framework used for PDFy, will handle URL rewriting. To make this work, you will need to tell your HTTPd to forward any non-existent requests to /var/sites/pdfy/public_html/rewrite.php. This is how you do that for most common HTTPds. Make sure to place this in your virtual host configuration, not your global configuration!

Apache >= 2.2.16

FallbackResource /rewrite.php

Apache < 2.2.16 (mod_rewrite required)

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ rewrite.php [L]

lighttpd

server.error-handler-404 = "/rewrite.php"

nginx

location / {
		try_files $uri $uri/ /rewrite.php;
}

Bugs

Please include the following information (where possible) in bug reports:

  • What did you expect it to do?
  • What did it do instead?
  • Operating System / Distribution (including version)
  • Browser (if client-side bug) or HTTPd (if server-side bug)
  • PDFy version (identified by commit hash, run git rev-parse HEAD on the server)
  • If a client-side bug, preferably a URL to the problematic page/document.

You may also file bugs related to the PDF viewer; if necessary, these will be forwarded upstream to the pdf.js project.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言