问题标签 [pdfclown]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
4063 浏览

byte - 在 C# 中使用 pdfclown 从流中打开 pdf

我真的很喜欢 c# 中的 pdfclown,但我想从 byte[] 数组或文件流中打开一个 pdf。我还没有找到任何关于 pdfclown 的例子。有人可以帮忙吗?

一个例子是这样的:

使用 (org.pdfclown.files.File 文件 = 新 org.pdfclown.bytes.IInputStream(bytes)) {

... }

谢谢

0 投票
1 回答
1550 浏览

pdfclown - How to generate PDF Document into bytes data (or binary) in memory without creating (or saving) file?

I'm new to PDF Clown and, taking a look at the samples included in its distribution, I noticed they use file = new org.pdfclown.files.File(path) to create new PDF files, then file.Save(anotherPath) to save them to the file system, but I couldn't find any example that would allow me to generate PDF documents and save them into byte array to be stored in RAM memory.

Basically what we're doing is to pass our customer's input data to the PDF document, generate it in memory, then attach it to emails or save it to database, without needing intermediate disk storage.

0 投票
1 回答
384 浏览

pdfclown - 创建具有多行的两列或三列电子表格?

我知道只有 PDFClown 2.0 版支持表格和单元格,但这只有几个月的时间。那么,被 1.2 版卡住了,我如何创建一个有 2 列的电子表格(以及另一个有 3 列的电子表格)?

任何带有示例的东西都可以为我指明正确的方向。

0 投票
1 回答
113 浏览

pdfclown - BlockComposer.ShowText() 没有绘制下划线文本的选项?

我正在使用 blockComposer.ShowText("foo") 来构建文本,但如何做下划线?

我没有看到足够的下划线示例,你们都是怎么做的?

0 投票
1 回答
77 浏览

pdfclown - 将条形码设置为 Code39?

查看示例条形码脚本。我想知道如何将条形码设置为 code39 以使其适用于车辆的 VIN?

0 投票
1 回答
99 浏览

pdfclown - 如何在 Block Composer - ShowText() 中输入空格键空格字符?

当我使用 ShowText 的空白(空格键空格)(在 Block Composer 中)时,它仅适用于文本的中间,但不适用于文本的开头。我认为这是因为 PDFClown 确实修剪了空白字符。

那么是否有特殊字符可以用来代替空格,这样它就不会被修剪?

0 投票
1 回答
453 浏览

pdfclown - 使用 Arial 字体的 PDF 查看器错误,其中空格变成“问号”

直到我在 Windows 7 的 Google Chrome 中运行它之前,我才注意到这个错误。它在 Internet Explorer 中并不明显,因为它使用的是 Adob​​e Acrobat,但 Chrome 使用内置的 PDF 查看器。

文本“你好,你好吗?” 变成了“你好,?怎么样?是?你?”。

然后我在http://sourceforge.net/p/clown/bugs/52/找到了这个错误报告。

所以我的问题是...

1)它只是一个 Chrome 错误吗?

2) 或者它只是一个 PDFClown 错误?

3) 如果 PDFClown 出现错误,那么您对修复的估计时间有任何想法吗?

谢谢。

0 投票
1 回答
166 浏览

pdfclown - 绘制背景彩色矩形时如何设置无边框?

绘制背景色填充矩形时有没有办法设置无边框?或者使边框颜色匹配背景色填充矩形?

0 投票
1 回答
5634 浏览

pdf - 将测量的英寸(和像素)转换为浮点数?

我注意到 PDF Clown 在浮动中使用测量值:如何将英寸和像素转换为浮动的宽度、高度等,以便在 PDF 中正常工作?有人有这个数学公式吗?

0 投票
1 回答
265 浏览

pdfclown - 无法更改字体颜色

我发现字体颜色不太好用,不管是蓝色、深蓝色还是浅蓝色。它们仍然是相同的颜色。