Use ImageMagick to convert pdf to png image vector graphics

2010-10-16  来源:本站原创  分类:Java  人气:373 

As I write, "to achieve based on MoinMoin + ConTeXt Wiki site contains mathematical content," a paper addressed to the generated pdf TeX vector graphics into the background transparent png image, which is the use of ImageMagick's convert command tool kit to achieve.

convert command has many options parameters used in this option are as follows:

-Trim: crop the image around the blank area;
-Transparent color: remove the image in the specified color;
-Density geometry: Set image DPI value, if the DPI value of an unknown concept, refer to "The pt, px, and DPI's knowledge";
-Antialias: make the image with antialiasing effect;
-Quality: image compression level.
The following pdf first by a ConTeXt document generation graphics, documents, as follows:

\usemodule[chinese]
\usemodule[chart]
\setuppagenumbering[state=no]

\starttext
\setupFLOWcharts
  [option=test,
   nx=4,
   ny=3,
   dx=\bodyfontsize,
   dy=\bodyfontsize,
   maxwidth=\textwidth]

\startFLOWchart [flowchart-a]
\startFLOWcell
\name{first}
\location{1,1}
\shape{singledocument}
\text{ The documentation is not really  }
\stopFLOWcell
\stopFLOWchart

\FLOWchart[flowchart-a]
\stoptext

Use the convert command to convert the pdf document:

$ convert -quality 100 -antialias -density 96 -transparent white -trim test.pdf test.png
相关文章
  • Use ImageMagick to convert pdf to png image vector graphics 2010-10-16

    As I write, "to achieve based on MoinMoin + ConTeXt Wiki site contains mathematical content," a paper addressed to the generated pdf TeX vector graphics into the background transparent png image, which is the use of ImageMagick's convert command

  • imagemagick's convert command convert jpg, png to pdf 2011-08-19

    Use ComicShelf software download comics First install ComicShelf this software. Use ComicShelf download the needed comic books to a local directory. Here, I downloaded the "Fairy Tail", and then copied to / tmp below. Volume 10 comics per order

  • perl-word convert pdf 2010-03-08

    # Word convert pdf # Program: Xing # Time: 2010.3.19 # Blog: http://deepfuture.javaeye.com # QQ: 782322192 use warnings; use strict; use Win32:: OLE; use Win32:: OLE:: Const 'Microsoft Word'; my $ word = CreateObject Win32:: OLE 'Word.Application' or

  • ASP.Net Word convert PDF format to achieve 2010-06-26

    1: an essential tool Install the necessary tools to MS VS.Net2003, MS Office2003, Adobe Acrobat 7.0 Professional, postscript.exe, gs811w32.exe MS VS.Net2003 the installation does not explain MS Office2003 installation does not explain Adobe Acrobat 7

  • Convert PDF to Word ASP.Net format to achieve 2010-06-26

    1: an essential tool Install the necessary tools to MS VS.Net2003, MS Office2003, Adobe Acrobat 7.0 Professional, postscript.exe, gs811w32.exe MS VS.Net2003 the installation does not explain MS Office2003 installation does not explain Adobe Acrobat 7

  • Convert pdf to text with xpdf 2011-01-12

    Using the xpdf PDF documents to deal with the Chinese package ch7.xpdf; import java.io.*; public class Pdf2Text { // PDF File Name private File pdffile; // Converter storage location, the default in c:\xpdf The following private String CONVERTOR_STOR

  • Using OpenOffice to convert word PDF [reprint] 2010-11-05

    Using OpenOffice to convert PDF to word Articles Category: Java Programming Before looking for a way through the call to adobe PDF virtual printer jacob generate PDF, but many people also call from time to time synchronization problems; to remind col

  • Powerful image processing in the history of open-source toolkit - ImageMagick 2010-08-26

    Powerful image processing in the history of open-source toolkit - ImageMagick [email protected] ImageMagick brief ImageMagick is a powerful, stable and free set of tools and development kits. Can be used to read, write, and image format conversion,

  • php使用Image Magick将PDF文件转换为JPG文件的方法 2014-11-25

    这篇文章主要介绍了php使用Image Magick将PDF文件转换为JPG文件的方法,涉及php使用Image Magick扩展操作图片的技巧,具有一定参考借鉴价值,需要的朋友可以参考下 本文实例讲述了php使用Image Magick将PDF文件转换为JPG文件的方法.分享给大家供大家参考.具体如下: 这是一个非常简单的格式转换代码,可以把.PDF文件转换为.JPG文件,代码要起作用,服务器必须要安装Image Magick 扩展. $pdf_file = './pdf/demo.pdf';

  • PHP利用imagick把PDF转成PNG 2013-08-12

    需求:通过PHP把PDF生成PNG图片,一般用在在线阅读浏览用的. Windows下实现: 1.PHP的DLL扩展下载地址:http://valokuva.org/outside-blog-content/imagick-windows-builds/ 2.里面有用于PHP不同的版本DLL,要注意和你的版本相同 3.把下载好的DLL改名成 php_imagick.dll(我是下载的php_imagick_dyn-Q16.dll)然后放入到PHP安装目录中的EXT. 4.修改php.ini 增加

  • word2007 transfer pdf 2010-03-16

    Previously used word2003 when trying to convert pdf word document when you want to download a special software, today found word2007 very convenient, as long as the http://www.microsoft.com/downloads/details.aspx?FamilyId = 4D951911-3E7E-4AE6-B059-A2

  • View PDF with the Flex SWF is called 2010-04-12

    Sometimes some of the information only for others to see, such as printable documents such as DOC, PDF, but not for other people without permission to save or print, especially web version of the document management system class, always take this int

  • Call SWF with Flex View PDF 2010-04-12

    Sometimes some of the information only for others to see, such as printable documents such as DOC, PDF, but not for other people without permission to save or print, especially web version of the document management system class, always take this int

  • Flex: using FlexPaper display PDF documents (transfer) 2010-09-23

    FlexPaper is an open source lightweight document display components, are designed to be used together with PDF2SWF to display PDF in Flex possible. It can be used as Flex's library. 1. Use PDF2SWF prepare your documents First, convert PDF to SWF, thi

  • pdf转换成jpg示例分享 2014-02-12

    由于项目需要在.net下将pdf转换为普通图像格式,找到了一个好方法,现在分享给大家 using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Collections; /** Convert PDF to Image Format(JPEG) using Ghostscript API convert a pdf to

  • 免费在线转换工具:PDF to Word 2014-08-20

    一般地我们处理文字都习惯用Word文档,虽然PDF同样流行,但是在Word文档中我们处理文字起来更加得心应手,无论排版还是文字输入等.在没有PDF转Word文档的工具时,我们是可以借助在线转换工具实现的,例如我今天要介绍的Wondershare的产品Free PDF to Word Online. 这个PDF to Word 在线工具与其他的差不多,但区别于其它一些在线PDF to Word Converter的是,Wondershare的产品对简体中文和表格支持更佳.笔者尝试性地将一个带有表格

  • iOS创建PDF文件 2012-11-15

    参考了官方文档:<PDF Document Creation, Viewing, and Transforming> pdf文档在iOS中是通过Quartz 2D库提供的api来操作的.iOS有两个图形库: Quartz 2D,是iOS原生的,简单易用,缺点是只有2D,仅限于iOS OpenGL ES,是开放标准的,2D和3D均有 使用Quartz 2D绘图到任意图形上下文(graphics context)创建pdf文件是很容易的事情.这需要: 指定pdf文件的位置 设置pdf的图形上下文(

  • ubuntu9.10 Software Recommended 2010-12-01

    First, the tool 1, the input method platform can be installed for each input method platform for many types of input methods (such as two pens, Wubi, Pinyin), are made. ibus (K) Ubuntu9.10 default input method platform scim created to replace the sta

  • In the Linux platform to install and configure Ruby on Rails Detailed 2009-03-02

    ruby on rails recommend the production environment is running Linux / FreeBSD / Unix, or Unix family of operating systems, using lighttpd + FCGI solution. The following will be my Linux operating system, lighttpd + FCGI, MySQL database as an example,

  • Java Products and software download 2009-03-13

    This column provides hundreds of Java products and software download site link and brief introduction developerWorks Web site resources related technologies. Through this column, you can easily find you need Java tools, components and code, but also