我正在寻找从XML源创建高质量 PDF,作为在线相簿创建工具的输出.从手动创建PDF(iText,PdfSharp等)到PrinceXML到xsl-fo工具,有数百种选项可以完成这项任务.以下是我想支持的一些功能:
强制性支持
可选支持
如果有人知道实现这一目标的最佳方式,我将非常感激.此外,如果有人知道其他在线相簿公司(如Blurb或Shutterfly)使用什么来将在线图书转换为可打印的PDF,我会非常有兴趣知道.
您应该研究PrinceXML(您在问题中列出的名称,但不要告诉我们您不喜欢它的什么),几天前我在这里提到过- 即使屏幕截图显示了结果。Prince 输出的其他样本也值得关注。
然而,你所说的“真正的所见即所得”对我来说仍然很模糊。
Because you'll have to show me an XML renderer first... one that would display me your XML on screen just like you expect your PDF pages to look like.
Update: Here is a set of examples for a PDF files created by PrinceXML. You can download 14 of them with this command on Linux or Mac OS X:
for i in 9-02 9-01 8-12 8-11 8-10 8-09 8-08 8-07 8-06 8-05 8-04 8-03 8-02 8-01; do
wget \
-r \
-t 3 \
-l 1 \
-c \
-O AdvancedAquarist-200${i}.pdf \
http://www.advancedaquarist.com/pdf/AdvancedAquarist-200${i}.pdf/at_download/file
done
Run Code Online (Sandbox Code Playgroud)
On Windows:
for %i in (9-02 9-01 8-12 8-11 8-10 8-09 8-08 8-07 8-06 8-05 8-04 8-03 8-02 8-01) do ^
wget.exe ^
-r ^
-t 3 ^
-l 1 ^
-c ^
-O AdvancedAquarist-200%i.pdf ^
http://www.advancedaquarist.com/pdf/AdvancedAquarist-200%i.pdf/at_download/file
Run Code Online (Sandbox Code Playgroud)
IMHO, these are pretty complex layouts being produced here.
Note, that the older issues of this magazine, up to May 2008, were created with iText 1.4.6 (according to their metadata).
The newer issues, from June 2008, were mostly done with PrinceXML 6.0 (which is a release from 4 years ago...).
尽管如此,这两个应用程序都产生了非常相似的布局......