生成包含pdf或ps数字的报告? [英] Generate report containing pdf or ps figures?

查看:100
本文介绍了生成包含pdf或ps数字的报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够生成一个包含

的PDF报告,主要是矢量图像(我可以生成封装的

Postscript,PDF或SVG)。我需要的是一种将这些数字组合成单个PDF文档的方法。现在

报告包含了所有这些数字,所以我只需将

数字写入临时文件,然后使用os.system()运行

ghostscript有适当的选项将它们组合成一个

单个PDF文件。


我希望能够添加一些文本和/或以输出文档中每页一个以外的方式放置数字




我查看了ReportLab的文档,但是虽然它好像b $ b似乎能够使用位图图像(例如jpeg)但它并不是b $ b似乎能够使用矢量图像(EPS / PDF / SVG) )。


是否有PDF生成库可以在页面上放置EPS或

PDF数据?


-

格兰特爱德华兹格兰特哇!纹身是真的吗,比如

在路边还是战舰上?

visi.com或者我们在痛苦吗?
Safeway?

I need to be able to generate a PDF report which consists
mostly of vector images (which I can generate as encapsulated
Postscript, PDF, or SVG). What I need is a way to combine
these figures into a single PDF document. Right now the
reports consist entire of these figures, so I just write the
figures out to temp files and then use os.system() to run
ghostscript with appropriate options to combine them into a
single PDF file.

I''d like to be able to add some text and/or place the figures
in a manner other than one per page in the output document.

I''ve looked at ReportLab''s documentation, but although it
appears to be able to use bitmap images (e.g jpeg) it doesn''t
appear to be able to use vector images (EPS/PDF/SVG).

Is there a PDF generation library that can place EPS or
PDF figures on a page?

--
Grant Edwards grante Yow! Is a tattoo real, like
at a curb or a battleship?
visi.com Or are we suffering in
Safeway?

推荐答案

4月23日下午6:30,Grant Edwards< gra ... @ visi.comwrote:
On Apr 23, 6:30 pm, Grant Edwards <gra...@visi.comwrote:

我需要能够生成PDF报告,其中包含大部分矢量图像的
(我可以生成封装的

Postscript,PDF或者SVG)。我需要的是一种将这些数字组合成单个PDF文档的方法。现在

报告包含了所有这些数字,所以我只需将

数字写入临时文件,然后使用os.system()运行

ghostscript有适当的选项将它们组合成一个

单个PDF文件。


我希望能够添加一些文本和/或以输出文档中每页一个以外的方式放置数字




我查看了ReportLab的文档,但是虽然它好像b $ b似乎能够使用位图图像(例如jpeg)但它并不是b $ b似乎能够使用矢量图像(EPS / PDF / SVG) )。


是否有PDF生成库可以在页面上放置EPS或

PDF数据?
I need to be able to generate a PDF report which consists
mostly of vector images (which I can generate as encapsulated
Postscript, PDF, or SVG). What I need is a way to combine
these figures into a single PDF document. Right now the
reports consist entire of these figures, so I just write the
figures out to temp files and then use os.system() to run
ghostscript with appropriate options to combine them into a
single PDF file.

I''d like to be able to add some text and/or place the figures
in a manner other than one per page in the output document.

I''ve looked at ReportLab''s documentation, but although it
appears to be able to use bitmap images (e.g jpeg) it doesn''t
appear to be able to use vector images (EPS/PDF/SVG).

Is there a PDF generation library that can place EPS or
PDF figures on a page?



如果您熟悉LaTeX,一个简单的解决方案就是

自动生成包含图像的LaTeX文档。

这也允许你添加字幕,缩放图像等等。

然后你可以通过pdflatex运行生成的文件,你有好看的报告。


问候,

Kjell Magne Fauske
http://www.fauskes.net

If you are familiar with LaTeX, an easy solution would be to
automatically generate a LaTeX document that includes your images.
This also allows you to add captions, scale the images and much more.
You can then run the generated document through pdflatex and you have
a nice looking report.

Regards,
Kjell Magne Fauske
http://www.fauskes.net


2007-04-23,Kjell Magne Fauske< ; kj ***** @ gmail.comwrote:
On 2007-04-23, Kjell Magne Fauske <kj*****@gmail.comwrote:

>是否有可以放置EPS或PDF的PDF生成库
页面上的数字?
>Is there a PDF generation library that can place EPS or PDF
figures on a page?



如果您熟悉LaTeX,一个简单的解决方案就是

自动生成包含您的
$的LaTeX文档b $ b图片。


If you are familiar with LaTeX, an easy solution would be to
automatically generate a LaTeX document that includes your
images.



是的,我已经使用TeX和LaTeX超过20年了。 :)我在80年代的DoD项目上工作了

,我们使用LaTeX生成了1000+

页面要求规范。它必须被分解成几十个单独的文件,因为在VAX / VMS下的LaTeX

不断溢出各种内部计数器。做了

的构建文件让VAX 780在大部分时间都很忙。


然而,将LaTeX的工作副本与我的Python应用程序捆绑在一起/>
不会落入简单的范围内。类别。这个应用程序需要适度跨平台和可分发。

。使用

LaTeX或Ghostscript(我当前的解决方案)使得捆绑应用程序并分发它是相当痛苦的。


-

格兰特爱德华兹格兰特哇!朝鲜战争必须

才有趣。

visi.com

Yea, I''ve been using TeX and LaTeX for 20+ years. :) I worked
on a DoD project back in the 80''s where we generated a 1000+
page requirements spec using LaTeX. It had to be broken up
into a few dozen separate documents because LaTeX under VAX/VMS
kept overflowing various internal counters. Doing a build of
the document kept a VAX 780 busy most of the night.

However, bundling a working copy of LaTeX with my Python app
doesn''t fall into the "easy" category. This app needs to be
moderately cross-platform and "distributable". Using either
LaTeX or Ghostscript (my current solution) makes it rather
painful to bundle up the app and distrubute it.

--
Grant Edwards grante Yow! The Korean War must
at have been fun.
visi.com


4月23日9:30 am,Grant Edwards< gra ... @ visi.comwrote:
On Apr 23, 9:30 am, Grant Edwards <gra...@visi.comwrote:

我需要能够生成包含
$ b $的PDF报告b主要是矢量图像(我可以生成封装的

Postscript,PDF或SVG)。我需要的是一种将这些数字组合成单个PDF文档的方法。现在

报告包含了所有这些数字,所以我只需将

数字写入临时文件,然后使用os.system()运行

ghostscript有适当的选项将它们组合成一个

单个PDF文件。


我希望能够添加一些文本和/或以输出文档中每页一个以外的方式放置数字




我查看了ReportLab的文档,但是虽然它好像b $ b似乎能够使用位图图像(例如jpeg)但它并不是b $ b似乎能够使用矢量图像(EPS / PDF / SVG) )。


是否有PDF生成库可以在页面上放置EPS或

PDF数据?


-

格兰特爱德华兹格兰特哇!纹身是真的吗,比如

在路边还是战舰上?

visi.com或者我们还在痛苦吗?
Safeway?
I need to be able to generate a PDF report which consists
mostly of vector images (which I can generate as encapsulated
Postscript, PDF, or SVG). What I need is a way to combine
these figures into a single PDF document. Right now the
reports consist entire of these figures, so I just write the
figures out to temp files and then use os.system() to run
ghostscript with appropriate options to combine them into a
single PDF file.

I''d like to be able to add some text and/or place the figures
in a manner other than one per page in the output document.

I''ve looked at ReportLab''s documentation, but although it
appears to be able to use bitmap images (e.g jpeg) it doesn''t
appear to be able to use vector images (EPS/PDF/SVG).

Is there a PDF generation library that can place EPS or
PDF figures on a page?

--
Grant Edwards grante Yow! Is a tattoo real, like
at a curb or a battleship?
visi.com Or are we suffering in
Safeway?



在Mac上...

http://developer.apple.com/graphicsi...andquartz.html

~Sean


这篇关于生成包含pdf或ps数字的报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆