2 Star 0 Fork 0

mirrors_dlbeer/fspdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Low-level PDF manipulation for F#

		     Daniel Beer <dlbeer@gmail.com>
			      13 Mar 2017

The code contained here consists of a module for manipulating PDF
objects (pdf.fs), and a very simple parser for Adobe Font Metrics files
and glyph-lists (afm.fs).

Things it can do:

  * Create arbitrary PDF documents.

  * Read objects from PDF documents (although it does not support
    parsing or decompression of content streams -- you need to implement
    this yourself).

  * Deep-copy objects from one PDF document to another (e.g. to use a
    page of one document as an image or background in another).

  * Calculate text sizes given a string, a point size, and an Adobe Font
    Metrics file.

PDFs of arbitrary complexity can be created, but you may find it useful
to wrap the module in something higher-level and more specific to your
needs.

Included is an example program (example.fs), which takes as arguments
the name of an input and an output PDF file. Page 1 of the input file is
extracted, and then a single-page output file is created which shows
page 1 of the input file scaled down and centered in the middle of the
page, with a blue border and a centered caption above it.

Building the example
--------------------

The included code should be able to be run on nearly any system. It has
no dependencies outside the .NET standard library. If you're on a Linux
system with mono and the F# compiler installed, type "make" to build.

If you're building manually, select all F# files for building, with
example.fs last in the list. You will also need to include glyphlist.txt
and Times-Roman.afm as assembly resources. The names of these resources
should be the same as their filenames.

空文件

简介

暂无描述 展开 收起
F# 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_dlbeer/fspdf.git
git@gitee.com:mirrors_dlbeer/fspdf.git
mirrors_dlbeer
fspdf
fspdf
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385