如何转换一个";“景观”;PDF格式,并附“;pdftocairo-每股收益;到正确的EPS?
我不知道如何使用工具如何转换一个";“景观”;PDF格式,并附“;pdftocairo-每股收益;到正确的EPS?,pdf,eps,poppler,Pdf,Eps,Poppler,我不知道如何使用工具pdftocairo将一个带有一张图片的“横向”PDF文件(例如,paperwidth=842,paperheight=595点,图像填充整个页面)转换为EPS文件 我得到的输出要么是原始文件的收缩版本(宽度从842缩放到595以适应EPS文件的“不正确”页面宽度595),要么是595和842之间的内容刚刚被切断的EPS(使用-noshrink参数) 有什么想法吗 编辑1:pdftocairo版本0.43.0 输入PDF: pdfinfo test.pdf 创建者:DocTy
pdftocairo
将一个带有一张图片的“横向”PDF文件(例如,paperwidth=842,paperheight=595点,图像填充整个页面)转换为EPS文件
我得到的输出要么是原始文件的收缩版本(宽度从842缩放到595以适应EPS文件的“不正确”页面宽度595),要么是595和842之间的内容刚刚被切断的EPS(使用-noshrink
参数)
有什么想法吗
编辑1:pdftocairo版本0.43.0
输入PDF:
pdfinfo test.pdf
创建者:DocType PDF发射器(DocType PDF发射器v1.9.37-9-g1b2b6f3)
制作人:Haru免费PDF库2.3.0RC2
创作日期:2018年6月4日星期一11:18:30
答:没有
用户属性:否
嫌疑人:没有
表格:无
JavaScript:没有
页数:1
加密:没有
页面大小:595.44 x 841.68分
页码:90
文件大小:149246字节
答:没有
PDF版本:1.3
使用pdftocairo-eps test.pdf转换
Poppler的最新版本(在我的系统上,它是v0.42.0)具有以下命令行选项,这些选项可能会有所帮助:
$ pdftocairo -h
pdftocairo version 0.42.0
Copyright 2005-2016 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftocairo [options] <PDF-file> [<output-file>]
[....]
-eps : generate Encapsulated PostScript (EPS)
[....]
-r <fp> : resolution, in PPI (default is 150)
-rx <fp> : X resolution, in PPI (default is 150)
-ry <fp> : Y resolution, in PPI (default is 150)
-scale-to <int> : scales each page to fit within scale-to*scale-to pixel box
-scale-to-x <int> : scales each page horizontally to fit in scale-to-x pixels
-scale-to-y <int> : scales each page vertically to fit in scale-to-y pixels
-x <int> : x-coordinate of the crop area top left corner
-y <int> : y-coordinate of the crop area top left corner
-W <int> : width of crop area in pixels (default is 0)
-H <int> : height of crop area in pixels (default is 0)
-sz <int> : size of crop square in pixels (sets W and H)
-cropbox : use the crop box rather than media box
[....]
-level2 : generate Level 2 PostScript (PS, EPS)
-level3 : generate Level 3 PostScript (PS, EPS)
-origpagesizes : conserve original page sizes (PS, PDF, SVG)
-paper <string> : paper size (letter, legal, A4, A3, match)
-paperw <int> : paper width, in points
-paperh <int> : paper height, in points
-nocrop : don't crop pages to CropBox
-expand : expand pages smaller than the paper size
-noshrink : don't shrink pages larger than the paper size
-nocenter : don't center pages smaller than the paper size
[....]
$pdftocairo-h
pdftocairo版本0.42.0
版权所有2005-2016 Poppler开发者-http://poppler.freedesktop.org
版权所有1996-2011 Glyph&Cog,LLC
用法:pdftocairo[选项][]
[....]
-eps:生成封装的PostScript(eps)
[....]
-r:分辨率,单位为PPI(默认值为150)
-rx:X分辨率,单位为PPI(默认值为150)
-Y:Y分辨率,单位为PPI(默认值为150)
-缩放到:缩放每页以适应缩放到*缩放到像素框
-缩放到x:水平缩放每个页面以适应缩放到x的像素
-缩放到y:垂直缩放每个页面以适应缩放到y的像素
-x:裁剪区域左上角的x坐标
-y:裁剪区域左上角的y坐标
-W:裁剪区域的宽度(以像素为单位)(默认值为0)
-H:裁剪区域的高度(以像素为单位)(默认值为0)
-sz:裁剪正方形的大小(以像素为单位)(设置W和H)
-cropbox:使用裁剪框而不是媒体框
[....]
-二级:生成二级PostScript(PS、EPS)
-三级:生成三级附言(PS、EPS)
-origpagesizes:保留原始页面大小(PS、PDF、SVG)
-纸张:纸张尺寸(字母、法律、A4、A3、匹配)
-paperw:纸张宽度,以点为单位
-paperh:纸张高度,以点为单位
-nocrop:不要将页面裁剪到CropBox
-展开:展开小于图纸尺寸的页面
-noshrink:不要缩小超过纸张大小的页面
-nocenter:不要将小于纸张大小的页面居中
[....]
Poppler的最新版本(在我的系统上是v0.42.0)具有以下命令行选项,这些选项可能会有所帮助:
$ pdftocairo -h
pdftocairo version 0.42.0
Copyright 2005-2016 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftocairo [options] <PDF-file> [<output-file>]
[....]
-eps : generate Encapsulated PostScript (EPS)
[....]
-r <fp> : resolution, in PPI (default is 150)
-rx <fp> : X resolution, in PPI (default is 150)
-ry <fp> : Y resolution, in PPI (default is 150)
-scale-to <int> : scales each page to fit within scale-to*scale-to pixel box
-scale-to-x <int> : scales each page horizontally to fit in scale-to-x pixels
-scale-to-y <int> : scales each page vertically to fit in scale-to-y pixels
-x <int> : x-coordinate of the crop area top left corner
-y <int> : y-coordinate of the crop area top left corner
-W <int> : width of crop area in pixels (default is 0)
-H <int> : height of crop area in pixels (default is 0)
-sz <int> : size of crop square in pixels (sets W and H)
-cropbox : use the crop box rather than media box
[....]
-level2 : generate Level 2 PostScript (PS, EPS)
-level3 : generate Level 3 PostScript (PS, EPS)
-origpagesizes : conserve original page sizes (PS, PDF, SVG)
-paper <string> : paper size (letter, legal, A4, A3, match)
-paperw <int> : paper width, in points
-paperh <int> : paper height, in points
-nocrop : don't crop pages to CropBox
-expand : expand pages smaller than the paper size
-noshrink : don't shrink pages larger than the paper size
-nocenter : don't center pages smaller than the paper size
[....]
$pdftocairo-h
pdftocairo版本0.42.0
版权所有2005-2016 Poppler开发者-http://poppler.freedesktop.org
版权所有1996-2011 Glyph&Cog,LLC
用法:pdftocairo[选项][]
[....]
-eps:生成封装的PostScript(eps)
[....]
-r:分辨率,单位为PPI(默认值为150)
-rx:X分辨率,单位为PPI(默认值为150)
-Y:Y分辨率,单位为PPI(默认值为150)
-缩放到:缩放每页以适应缩放到*缩放到像素框
-缩放到x:水平缩放每个页面以适应缩放到x的像素
-缩放到y:垂直缩放每个页面以适应缩放到y的像素
-x:裁剪区域左上角的x坐标
-y:裁剪区域左上角的y坐标
-W:裁剪区域的宽度(以像素为单位)(默认值为0)
-H:裁剪区域的高度(以像素为单位)(默认值为0)
-sz:裁剪正方形的大小(以像素为单位)(设置W和H)
-cropbox:使用裁剪框而不是媒体框
[....]
-二级:生成二级PostScript(PS、EPS)
-三级:生成三级附言(PS、EPS)
-origpagesizes:保留原始页面大小(PS、PDF、SVG)
-纸张:纸张尺寸(字母、法律、A4、A3、匹配)
-paperw:纸张宽度,以点为单位
-paperh:纸张高度,以点为单位
-nocrop:不要将页面裁剪到CropBox
-展开:展开小于图纸尺寸的页面
-noshrink:不要缩小超过纸张大小的页面
-nocenter:不要将小于纸张大小的页面居中
[....]
您可以添加(链接到)示例PDF吗?您使用的是哪一版本的Poppler/pdftocairo
?能否添加(链接到)示例PDF?您使用的是哪个版本的Poppler/pdftocairo
?