我刚刚安装了 pdfcrop 来裁剪我导出的 Visio .pdf 图表以便在 LaTeX(带有 TexMaker 的 MikiTex)中使用。
我有一个名为 PDF_TEST.pdf 的文件,是从 Visio 2019 导出的,
我在 Windows PowerShell 中运行以下命令
pdfcrop --verbose PDF_TEST.pdf PDF_TEST_CROP.pdf
它输出:
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
* PDF header: %PDF-1.7
* Running ghostscript for BoundingBox calculation ...
MiKTeX GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 0 0 596 842
* Page 1: 0 0 596 842
%%HiResBoundingBox: 0.738000 0.000000 595.493982 841.517974
* Running pdfTeX ...
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7300 64-bit)
entering extended mode
(tmp-pdfcrop-11692.tex [1 <./PDF_TEST.pdf>] )
Output written on tmp-pdfcrop-11692.pdf (1 page, 2408 bytes).
Transcript written on tmp-pdfcrop-11692.log.
pdftex: major issue: So far, no MiKTeX administrator has checked for updates.
==> 1 page written on `PDF_TEST_CROP.pdf'.
pdfcrop: major issue: So far, no MiKTeX administrator has checked for updates.
看起来一模一样!没有变化。当我在 LaTeX 文档中使用它时,它会显示所有空白。