ghostscript gpl что это

Ghostscript documentation

This document is a roadmap to the Ghostscript documentation. After looking through it, if you want to install Ghostscript and not only use it, we recommend you read how to install Ghostscript, and how to compile Ghostscript from source code (which is necessary before installing it on Unix and VMS systems).

Table of contents

Document roadmap by theme

What should I read if I’m a new user?

GPL and commercial Ghostscript

GPL Ghostscript, Artifex Ghostscript and AFPL Ghostscript are different releases.

If you run into any questions, or if you are going to be using Ghostscript extensively, you should at least skim, and probably eventually read:

Before building Ghostscript

If you are going to compile Ghostscript from source, rather than just use an executable you got from somewhere, you may want to read:

What should I read if I’m not a new user?

If you have already used Ghostscript, when you receive a new release you should begin by reading this file, then:

What if I’m a developer?

If you are going to do any development on or with Ghostscript at all, you should at least look at:

If you are going to write a new driver for Ghostscript, you should read:

If you are considering distributing GPL Ghostscript in conjunction with a commercial product, you should read the license carefully, and you should also read

If you intend to use Ghostscript in the form of a dynamic link library (DLL) under OS/2 or Microsoft Windows or in the form of shared object under Linux, read

If you want to use Ghostscript as part of another program—as a callable PostScript language interpreter—and not as a DLL or as a self-contained executable application, you should begin by reading:

or if you are going to use only the Ghostscript graphics library:

What if I’m writing documentation?

If you are editing or adding to Ghostscript’s existing documentation in HTML format, or writing a new document, you should contact us on our IRC channel or the gs-devel mailing list for guidance, links to those are on: www.ghostscript.com.

Presence on the World Wide Web

Ghostscript’s home page

Ghostscript has a home page on the World Wide Web with helpful information such as the FAQ (Frequently Asked Questions):

Adobe PostScript, Encapsulated PostScript, and PDF reference documentation

Adobe makes a wealth of technical documentation available over the Web, including the PostScript Language Reference Manual (Third Edition); the Encapsulated PostScript (EPS) Format Specification version 3, including Encapsulated PostScript Interchange (EPSI) format; the PDF Reference manuals. The Acrobat SDK contains pdfmark and Acrobat Distiller parameters documentation. Some of these documents are also available at Adobe’s ftp site, but not necessarily under the same filenames.

Other material on the WWW

Much other material about Ghostscript is available on the World Wide Web, both as web pages and as archived Usenet and mailing list discussions. Use the well-known search engines to find such material.

Which document contains what?

Here is the list in alphabetic order of Ghostscript documentation, with explanations of the contents.

Copyright © 2000-2021 Artifex Software, Inc. All rights reserved.

Ghostscript version 9.55.0, 27 September 2021

Источник

Что такое gswin32.exe? Это безопасно или вирус? Как удалить или исправить это

Что такое gswin32.exe?

gswin32.exe это исполняемый файл, который является частью Ghostscript GPL 8.64 Msi Setup Программа, разработанная Корпорация Corel, Программное обеспечение обычно о 22.2 MB по размеру.

Gswin32.exe безопасный или это вирус или вредоносное ПО?

Первое, что поможет вам определить, является ли тот или иной файл законным процессом Windows или вирусом, это местоположение самого исполняемого файла. Например, такой процесс, как gswin32.exe, должен запускаться из C: \ Program Files \ gs \ gs8.64 \ bin \ gsdll32.dll, а не где-либо еще.

Если статус процесса «Проверенная подписывающая сторона» указан как «Невозможно проверить», вам следует взглянуть на процесс. Не все хорошие процессы Windows имеют метку проверенной подписи, но ни один из плохих.

Наиболее важные факты о gswin32.exe:

Если у вас возникли какие-либо трудности с этим исполняемым файлом, перед удалением gswin32.exe вы должны определить, заслуживает ли он доверия. Для этого найдите этот процесс в диспетчере задач.

Найдите его местоположение (оно должно быть в C: \ Program Files \ gs \ gs8.64 \) и сравните размер и т. Д. С приведенными выше фактами.

Если вы подозреваете, что можете быть заражены вирусом, вы должны немедленно попытаться это исправить. Чтобы удалить вирус gswin32.exe, необходимо Загрузите и установите приложение полной безопасности, например Malwarebytes., Обратите внимание, что не все инструменты могут обнаружить все типы вредоносных программ, поэтому вам может потребоваться попробовать несколько вариантов, прежде чем вы добьетесь успеха.

Могу ли я удалить или удалить gswin32.exe?

Не следует удалять безопасный исполняемый файл без уважительной причины, так как это может повлиять на производительность любых связанных программ, использующих этот файл. Не забывайте регулярно обновлять программное обеспечение и программы, чтобы избежать будущих проблем, вызванных поврежденными файлами. Что касается проблем с функциональностью программного обеспечения, проверяйте обновления драйверов и программного обеспечения чаще, чтобы избежать или вообще не возникало таких проблем.

Распространенные сообщения об ошибках в gswin32.exe

Наиболее распространенные ошибки gswin32.exe, которые могут возникнуть:

• «Ошибка приложения gswin32.exe.»
• «Ошибка gswin32.exe».
• «Возникла ошибка в приложении gswin32.exe. Приложение будет закрыто. Приносим извинения за неудобства».
• «gswin32.exe не является допустимым приложением Win32».
• «gswin32.exe не запущен».
• «gswin32.exe не найден».
• «Не удается найти gswin32.exe».
• «Ошибка запуска программы: gswin32.exe.»
• «Неверный путь к приложению: gswin32.exe.»

Как исправить gswin32.exe

Если у вас возникла более серьезная проблема, постарайтесь запомнить последнее, что вы сделали, или последнее, что вы установили перед проблемой. Использовать resmon Команда для определения процессов, вызывающих вашу проблему. Даже в случае серьезных проблем вместо переустановки Windows вы должны попытаться восстановить вашу установку или, в случае Windows 8, выполнив команду DISM.exe / Online / Очистка-изображение / Восстановить здоровье, Это позволяет восстановить операционную систему без потери данных.

Чтобы помочь вам проанализировать процесс gswin32.exe на вашем компьютере, вам могут пригодиться следующие программы: Менеджер задач безопасности отображает все запущенные задачи Windows, включая встроенные скрытые процессы, такие как мониторинг клавиатуры и браузера или записи автозапуска. Единый рейтинг риска безопасности указывает на вероятность того, что это шпионское ПО, вредоносное ПО или потенциальный троянский конь. Это антивирус обнаруживает и удаляет со своего жесткого диска шпионское и рекламное ПО, трояны, кейлоггеры, вредоносное ПО и трекеры.

Обновлен декабрь 2021:

Мы рекомендуем вам попробовать это новое программное обеспечение, которое исправляет компьютерные ошибки, защищает их от вредоносных программ и оптимизирует производительность вашего ПК. Этот новый инструмент исправляет широкий спектр компьютерных ошибок, защищает от таких вещей, как потеря файлов, вредоносное ПО и сбои оборудования.

Загрузите или переустановите gswin32.exe

Вход в музей Мадам Тюссо не рекомендуется загружать файлы замены exe с любых сайтов загрузки, так как они могут сами содержать вирусы и т. д. Если вам нужно скачать или переустановить gswin32.exe, то мы рекомендуем переустановить основное приложение, связанное с ним Ghostscript GPL 8.64 Msi Setup.

Информация об операционной системе

Ошибки gswin32.exe могут появляться в любых из нижеперечисленных операционных систем Microsoft Windows:

Источник

Gpl ghostscript что это за программа?

Что такое gswin32.exe? Это безопасно или вирус? Как удалить или исправить это

gswin32.exe это исполняемый файл, который является частью Ghostscript GPL 8.64 Msi Setup Программа, разработанная Корпорация Corel, Программное обеспечение обычно о 22.2 MB по размеру.

Рекомендуется: Выявление ошибок, связанных с gswin32.exe.
(опциональное предложение для Reimage — Cайт | Лицензионное соглашение | Политика Kонфиденциальности | Удалить)

Gswin32.exe безопасный или это вирус или вредоносное ПО?

Первое, что поможет вам определить, является ли тот или иной файл законным процессом Windows или вирусом, это местоположение самого исполняемого файла. Например, такой процесс, как gswin32.exe, должен запускаться из C: \ Program Files \ gs \ gs8.64 \ bin \ gsdll32.dll, а не где-либо еще.

Если статус процесса «Подтвержденный подписчик» указан как «Невозможно проверить», вам следует взглянуть на процесс. Не все хорошие процессы Windows имеют ярлык проверенной подписи, но ни один из них не имеет плохих.

Наиболее важные факты о gswin32.exe:

Если у вас возникли какие-либо трудности с этим исполняемым файлом, перед удалением gswin32.exe вы должны определить, заслуживает ли он доверия. Для этого найдите этот процесс в диспетчере задач.

Найдите его местоположение (оно должно быть в C: \ Program Files \ gs \ gs8.64 \) и сравните размер и т. Д. С приведенными выше фактами.

Если вы подозреваете, что можете быть заражены вирусом, вы должны немедленно попытаться это исправить. Чтобы удалить вирус gswin32.exe, необходимо Загрузите и установите приложение полной безопасности, например Malwarebytes., Обратите внимание, что не все инструменты могут обнаружить все типы вредоносных программ, поэтому вам может потребоваться попробовать несколько вариантов, прежде чем вы добьетесь успеха.

Кроме того, функциональность вируса может сама влиять на удаление gswin32.exe. В этом случае вы должны включить Безопасный режим с поддержкой сети — безопасная среда, которая отключает большинство процессов и загружает только самые необходимые службы и драйверы. Когда вы можете запустить программу безопасности и полный анализ системы.

Не следует удалять безопасный исполняемый файл без уважительной причины, так как это может повлиять на производительность любых связанных программ, использующих этот файл. Не забывайте регулярно обновлять программное обеспечение и программы, чтобы избежать будущих проблем, вызванных поврежденными файлами. Что касается проблем с функциональностью программного обеспечения, проверяйте обновления драйверов и программного обеспечения чаще, чтобы избежать или вообще не возникало таких проблем.

Согласно различным источникам онлайн, 10% людей удаляют этот файл, поэтому он может быть безвредным, но рекомендуется проверить надежность этого исполняемого файла самостоятельно, чтобы определить, является ли он безопасным или вирусом. Лучшая диагностика для этих подозрительных файлов — полный системный анализ с Reimage, Если файл классифицирован как вредоносный, эти приложения также удалят gswin32.exe и избавятся от связанных вредоносных программ.

Распространенные сообщения об ошибках в gswin32.exe

Наиболее распространенные ошибки gswin32.exe, которые могут возникнуть:

• «Ошибка приложения gswin32.exe.» • «gswin32.exe не удалось.» • «Возникла ошибка в приложении gswin32.exe. Приложение будет закрыто. Приносим извинения за неудобства.» • «gswin32.exe не является приложением Win32.» • «gswin32.exe не запущен». • «gswin32.exe не найден.» • «Не удается найти gswin32.exe.» • «Ошибка запуска программы: gswin32.exe.»

• «Неверный путь к приложению: gswin32.exe.»

Как исправить gswin32.exe

Аккуратный и опрятный компьютер — это один из лучших способов избежать проблем с Ghostscript GPL 8.64 Msi Setup. Это означает выполнение сканирования на наличие вредоносных программ, очистку жесткого диска cleanmgr и ПФС / SCANNOWудаление ненужных программ, мониторинг любых автозапускаемых программ (с помощью msconfig) и включение автоматических обновлений Windows. Не забывайте всегда делать регулярные резервные копии или хотя бы определять точки восстановления.

Если у вас возникла более серьезная проблема, постарайтесь запомнить последнее, что вы сделали, или последнее, что вы установили перед проблемой. Использовать resmon Команда для определения процессов, вызывающих вашу проблему. Даже в случае серьезных проблем вместо переустановки Windows вы должны попытаться восстановить вашу установку или, в случае Windows 8, выполнив команду DISM.exe / Online / Очистка-изображение / Восстановить здоровье, Это позволяет восстановить операционную систему без потери данных.

Чтобы помочь вам проанализировать процесс gswin32.exe на вашем компьютере, вам могут пригодиться следующие программы: Менеджер задач безопасности отображает все запущенные задачи Windows, включая встроенные скрытые процессы, такие как мониторинг клавиатуры и браузера или записи автозапуска. Единый рейтинг риска безопасности указывает на вероятность того, что это шпионское ПО, вредоносное ПО или потенциальный троянский конь. Это антивирус обнаруживает и удаляет со своего жесткого диска шпионское и рекламное ПО, трояны, кейлоггеры, вредоносное ПО и трекеры.

Мы рекомендуем вам попробовать этот новый инструмент. Он исправляет множество компьютерных ошибок, а также защищает от таких вещей, как потеря файлов, вредоносное ПО, сбои оборудования и оптимизирует ваш компьютер для максимальной производительности. Это исправило наш компьютер быстрее, чем делать это вручную:

(опциональное предложение для Reimage — Cайт | Лицензионное соглашение | Политика Kонфиденциальности | Удалить)

Загрузите или переустановите gswin32.exe

это не рекомендуется загружать файлы замены exe с любых сайтов загрузки, так как они могут сами содержать вирусы и т. д. Если вам нужно скачать или переустановить gswin32.exe, то мы рекомендуем переустановить основное приложение, связанное с ним Ghostscript GPL 8.64 Msi Setup.

Информация об операционной системе

Ошибки gswin32.exe могут появляться в любых из нижеперечисленных операционных систем Microsoft Windows:

РЕКОМЕНДУЕМЫЕ: Нажмите здесь, чтобы устранить ошибки Windows и оптимизировать производительность системы

Beyond Linux From Scratch. Пакет GPL Ghostscript-9.00

Библиотека сайта rus-linux.net

Beyond Linux From Scratch. Version 2011-12-30
Назад 43. Печать Вперед

Ghostscript является универсальным процессором для обработки данных PostScript, имеющим возможность выполнять рендеринг языка PostScript для решения различных задач.

Известно, что пакет правильно собирается и работает на платформе LFS-7.0.

Информация о пакете

Expat-2.0.1, FreeType-2.4.8, JasPer-1.900.1, libjpeg-8c, libpng-1.5.5, LibTIFF-4.0.0 и little cms-1.19

Необязательные

cairo-1.10.2, Fontconfig-2.8.0, gtk+-2.24.8, CUPS-1.5.0, Libidn-1.22, система X Window и libpaper.

Замечания для пользователей: http://wiki.linuxfromscratch.org/blfs/wiki/gs

Установка пакета Ghostscript

Установите пакет GPL Ghostscript с помощью следующих команд:

Система сборки пакета Ghostscript неудобна. Для того, чтобы использовать системные копии различных графических библиотек, вам придется воспользоваться нестандартными приемами.

В состав пакета GPL Ghostscript входят (старые) копии нескольких библиотек. Некоторые из них, вероятно, были пропатчены с тем, чтобы исправить известные в них уязвимости, но поддержка некоторых других копий осуществляется очень плохо. Чтобы гарантировать, что все последующие исправления будут применяться ко всей системе, рекомендуется устанавливать отдельные релизы этих библиотек, а затем сконфигурировать пакет GPL Ghostscript таким образом, чтобы компоновка выполнялась с этим релизами.

Если вы установили в вашей системе эти зависимости, то удалите копии пакетов expat, freetype, JasPer, lcms, libjpeg, libpng, libtiff и zlib:

Запустите команду конфигурирования:

./configure —prefix=/usr —enable-dynamic —with-system-libtiff

Чтобы обеспечить, чтобы при сборке использовались системные версии пакетов expat, freetype и zlib, нужно перед сборкой пакета внести некоторые изменения в файл Makefile:

Чтобы откомпилировать эту библиотеку, выполните в роли непривилегированного пользователя следующую команду:

В состав этого пакет не входит набор тестов. Тем не менее, вы можете с помощью следующей команды протестировать работу только собранной программы gs (наберите команду в терминале X Windows):

Теперь в роли пользователя root выполните:

Если вы также хотите установить общедоступную библиотеку:

Теперь установите документацию:

Для того, чтобы завершить установку, распакуйте все шрифты, которые вы скачали, в директорий /usr/share/ghostscript и обеспечьте, чтобы их владельцем файлов был пользователь root:root. Подставьте вместо в команде, указанной ниже, шрифты, которые вы хотите установить:

Пояснение команд

—without-jasper: Если вы знаете, что не будет распечатывать файлы в формате JPEG2000, то с помощью этого переключателя отключите (и удалите из исходных кодов директорий jasper) поддержку формата JPEG2000 в пакете Ghostscript.

—without-jbig2dec: С помощью этого переключателя можно отключить использование распаковки кода JBIG2 и удалить исходный код jbig2dec/.

Описание пакета

Установленные программы: bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj, gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx (из soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt, pf2afm, ptopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh и wftopfa

Установленные библиотеки: libgs.so

Установленные директории: /usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript и /usr/share/doc/ghostscript-9.04

интерпретатор языков PostScript ™ и Portable Document Format (PDF) фирмы Adobe

предоставляет другим программам, таким как GSView, ImageMagick и libspectre, функциональные возможности, имеющиеся в пакете Ghostscript

В пакете GPL Ghostscript предлагается большое количество различных скриптов, используемых для преобразования форматов PostScript, PDF и других. Чтобы получить информацию о предоставляемых возможностях, пожалуйста, обратитесь к документации на HTML или к страницам man.

Читайте также:  разиля имя какой национальности

Перевод сделан с варианта оригинала, датированного 2011-12-03 21:09:26 +0000

Источник

gpl ghostscript что это за программа

Ghostscript
Тип интерпретирование PostScript и PDF
Разработчик Artifex Software
Написана на C
Операционная система Linux, Mac OS X и др. UNIX-подобные, Windows
Первый выпуск 2000 [1]
Последняя версия 9.26(20 ноября 2018 [1] )
Состояние активное
Лицензия GNU GPL, Artifex Commercial License
Сайт ghostscript.com
Медиафайлы на Викискладе

Ghostscript — набор программного обеспечения, позволяющего интерпретировать язык PostScript и документы PDF.

Содержание

История [ править | править код ]

Ghostscript был первоначально написан Л. Питером Дойчем (англ. L. Peter Deutsch ) в 1986 году для Проекта GNU, и выпущен под лицензией GNU General Public License. Позже он сформировал Aladdin Enterprises, чтобы лицензировать Ghostscript согласно частной лицензии. Ghostscript в настоящее время принадлежит компании Artifex Software и поддерживается её программистами. Последняя версия этого набора программного обеспечения снова доступна под лицензией GPL, но может также лицензироваться для использования в частных проектах за плату.

Возможности [ править | править код ]

Ghostscript может осуществлять конвертирование файлов PostScript в файлы различных графических форматов, выводить на дисплей интерпретированное содержимое и осуществлять печать на принтерах не поддерживающих PostScript; часто используется как «виртуальный принтер» для создания документов в формате PDF или PostScript из программ, не поддерживающих конвертирование в эти форматы.

Может использоваться как процессор растровых изображений (RIP) для растровых компьютерных принтеров — например, как входной фильтр для LPD — или как механизм RIP для программ просмотра PDF или PostScript.

Поскольку Ghostscript является интерпретатором языка, то он может также использоваться в качестве универсальной среды программирования. Ghostscript был перенесён на многие операционные системы, включая Unix, Linux, Mac OS, OpenVMS, Microsoft Windows, MS-DOS, FreeDOS, OS/2 и AmigaOS.

GhostScript — Entwickler: Artifex Software Inc. Aktuelle Version: 8.64 (3. Februar … Deutsch Wikipedia

Ghostscript — Entwickler Artifex Software Inc. Aktuelle Version 9.04 (8. August 2011) … Deutsch Wikipedia

GhostScript — Développeur Artifex Software Inc … Wikipédia en Français

Ghostscript — Desarrollador Artifex Software Ghostscript, Ghostview y … Wikipedia Español

Ghostscript — (escrito por Peter Deutsch, fundador de Aladdin Enterprises), es el programa intérprete por excelencia de documentos en formato PS (y también PDF). Ghostscript permite presentar datos PS y PDF en la pantalla y además traducirlos de manera que… … Enciclopedia Universal

Ghostscript — infobox software name = Ghostscript caption = Ghostscript Logo author = L. Peter Deutsch developer = Artifex Software released = August 11, 1988 [cite web |url=http://ghostscript.com/doc/current/History1.htm#Version1.0 |title=History of… … Wikipedia

Ghostscript — GPL Ghostscript Développeur Artifex Software Inc. Première version … Wikipédia en Français

GhostScript — GNU Public Domain Postscript (Interpreter, siehe http://www.desy.de/cgi bin/man cgigs) … Acronyms

GhostScript — GNU Public Domain Postscript (Interpreter, siehe http://www.desy.de/cgi bin/man cgigs) … Acronyms von A bis Z

GNU Ghostscript — Développeur Projet GNU Première version 2004 Dernière ver … Wikipédia en Français

Windows

Linux

Характеристики

Обновлено: 2018-10-27 03:06:20

Разрядность: 32 и 64 бит

Совместимость: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10

Описание

Рекомендуем скачать Ghostscript, чтобы конвертировать файлы PostScript в другие графические форматы. Программа используется для преобразования изображений в пригодный для печати формат. Выпускается Ghostscript для Windows, Unix, Linux, Mac OS X. Приложение переводит языки PS, PDF в растровые форматы с визуализацией на экране или распечатки на принтере. Загрузить Ghostscript можно бесплатно без ограничений и рекламы.

Скачать бесплатно ГостСкрипт для компьютера можно на нашем сайте.

Источник

Ghostscript documentation

Table of contents

For other information, see the Ghostscript overview and, if necessary, how to install Ghostscript.

Invoking Ghostscript

This document describes how to use the command line Ghostscript client. Ghostscript is also used as a general engine inside other applications (for viewing files for example). Please refer to the documentation for those applications for using Ghostscript in other contexts.

The command line to invoke Ghostscript is essentially the same on all systems, although the name of the executable program itself may differ among systems. For instance, to invoke Ghostscript on unix-like systems type:

Here are some basic examples. The details of how these work are described below.

You’ll be prompted to press return between pages.

To convert a figure to an image file:

To render the same image at 300 dpi:

To render a figure in grayscale:

To rasterize a whole document:

There are also a number of utility scripts for common to convert a PostScript document to PDF:

The output is saved as file.pdf.

Ghostscript is capable of interpreting PostScript, encapsulated PostScript (EPS), DOS EPS (EPSF), and Adobe Portable Document Format (PDF). The interpreter reads and executes the files in sequence, using the method described under «File searching» to find them.

The interpreter recognizes many options. An option may appear anywhere in the command line, and applies to all files named after it on the line. Many of them include » = » followed by a parameter. The most important are described in detail here. Please see the reference sections on options and devices for a more complete listing.

The message shows for that version of the Ghostscript executable:

On other systems the executable may have a different name:

System Invocation Name
Unix gs
VMS gs
MS Windows 95 and later gswin32.exe
gswin32c.exe
gswin64.exe
gswin64c.exe
OS/2 gsos2

On Windows, the two digit number indicates the word length of the system for which the binary was built (so gswin32.exe is for x86 Windows systems, whilst gswin64.exe is for x86_64 Windows systems). And the «c» suffix indicates a Windows console based binary (note that the «display device» window will still appear).

Selecting an output device

Ghostscript has a notion of ‘output devices’ which handle saving or displaying the results in a particular format. Ghostscript comes with a diverse variety of such devices supporting vector and raster file output, screen display, driving various printers and communicating with other applications.

Note that this switch must precede the name of the first input file, and only its first use has any effect. For example, for printer output in a configuration that includes an Epson printer driver, instead of just ‘gs myfile.ps’ you might use

The output device can also be set through the GS_DEVICE environment variable.

Once you invoke Ghostscript you can also find out what devices are available by typing ‘ devicenames == ‘ at the interactive prompt. You can set the output device and process a file from the interactive prompt as well:

All output then goes to the Epson printer instead of the display until you do something to change devices. You can switch devices at any time by using the selectdevice procedure, for instance like one of these:

Output resolution

Output to files

Ghostscript also allows you to control where it sends its output. With a display device this isn’t necessary as the device handles presenting the output on screen internally. Some specialized printer drivers operate this way as well, but most devices are general and need to be directed to a particular file or printer.

Please see Ghostscript and the PostScript Language and the PostScript Language Reference Manual for more details on % and filedevices.

Note that on MS Windows systems, the % character also has a special meaning for the command processor (shell), so you will have to double it.

For example, in order to create two PDF files from a single invocation of ghostscript the following can be used:

One page per file

Specifying a single output file works fine for printing and rasterizing figures, but sometimes you want images of each page of a multi-page document. You can tell Ghostscript to put each page of output in a series of similarly named files. To do this place a template ‘ %d ‘ in the filename which Ghostscript will replace with the page number.

The format can in fact be more involved than a simple ‘ %d ‘. The format specifier is of a form similar to the C printf format. The general form supported is:

For more information, please refer to documentation on the C printf format specifications. Some examples are:

As noted above, when using MS Windows console (command.com or cmd.exe), you will have to double the % character since the % is used by that shell to prefix variables for substitution, e.g.,

-o option:

For instance, to convert somefile.ps to JPEG image files, one per page, use:

Choosing paper size

Ghostscript is distributed configured to use U.S. letter paper as its default page size. There are two ways to select other paper sizes from the command line:

Where w be the desired paper width and h be the desired paper height in points (units of 1/72 of an inch).

The default set of paper sizes will be included in the currentpagedevice in the InputAttributes dictionary with each paper size as one of the entries. The last entry in the dictionary (which has numeric keys) is a non-standard (Ghostscript extension) type of PageSize where the array has four elements rather than the standard two elements. This four element array represents a page size range where the first two elements are the lower bound of the range and the second two are the upper bound. By default these are [0, 0] for the lower bound and [16#fffff, 16#fffff] for the upper bound.

Changing the installed default paper size

Then to make A4 the default paper size, uncomment the line to change this to

For a4 you can substitute any paper size Ghostscript knows.

Sometimes the initialization files are compiled into Ghostscript and cannot be changed.

On Windows and some Linux builds, the default paper size will be selected to be a4 or letter depending on the locale.

Interacting with pipes

Also, using the -sstdout=%stderr option is useful, particularly with input from PostScript files that may print to stdout.

Similar results can be obtained with the %stdout and %pipe% filedevices. The example above would become

(again, doubling the % character on MS Windows systems.)

Using Ghostscript with PDF files

Ghostscript is normally built to interpret both PostScript and PDF files, examining each file to determine automatically whether its contents are PDF or PostScript. All the normal switches and procedures for interpreting PostScript files also apply to PDF files, with a few exceptions. In addition, the pdf2ps utility uses Ghostscript to convert PDF to (Level 2) PostScript.

Switches for PDF files

Here are some command line options specific to PDF

-dNEWPDF From release 9.55.0 Ghostscript incorporates two complete PDF interpreters; the original long-standing interpreter is written in PostScript but there is now a new interpreter written in C.

At present the old PostScript-based interpreter remains the default, in future releases the new C-based interpreter will become the default, though we would encourage people to experiment with the new interpreter and send us feedback. While there are two interpreters the command-line switch NEWPDF will allow selection of the existing interpreter when false and the new interpreter when true.

This is useful for creating fixed size images of PDF files that may have a variety of page sizes, for example thumbnail images.

These command line options are no longer specific to PDF, but have some specific differences with PDF files

The XPS language like the PDF language allows random access to pages. The XPS interpreter handles all the PageList cases discussed above. It also handles cases such as:

Problems interpreting a PDF file

In the past, Ghostscript’s policy has been to simply fail with an error message when confronted with these files. This policy has, no doubt, encouraged PDF generators to be more careful. However, we now recognize that this behavior is not very friendly for people who just want to use Ghostscript to view or print PDF files. Our new policy is to try to render broken PDF’s, and also to print a warning, so that Ghostscript is still useful as a sanity-check for invalid files.

PDF files from standard input

Using Ghostscript with EPS files

Encapsulated PostScript (EPS) files are intended to be incorporated in other PostScript documents and may not display or print on their own. An EPS file must conform to the Document Structuring Conventions, must include a %%BoundingBox line to indicate the rectangle in which it will draw, must not use PostScript commands which will interfere with the document importing the EPS, and can have either zero pages or one page. Ghostscript has support for handling EPS files, but requires that the %%BoundingBox be in the header, not the trailer. To customize EPS handling, see EPS parameters.

For the official description of the EPS file format, please refer to the Adobe documentation in their tech note #5002. It is available from: http://partners.adobe.com/public/developer/ps/index_specs.html

Using Ghostscript with overprinting and spot colors

In general with PostScript and PDF interpreters, the handling of overprinting and spot colors depends upon the process color model of the output device. Devices that produce gray or RGB output have an additive process color model. Devices which produce CMYK output have a subtractive process color model. Devices may, or may not, have support for spot colors.

Note: The differences in appearance of files with overprinting and spot colors caused by the differences in the color model of the output device are part of the PostScript and PDF specifications. They are not due to a limitation in the implementation of Ghostscript or its output devices.

With devices which use a subtractive process color model, both PostScript and PDF allow the drawing of objects using colorants (inks) for one or more planes without affecting the data for the remaining colorants. Thus the inks for one object may overprint the inks for another object. In some cases this produces a transparency like effect. (The effects of overprinting should not be confused with the PDF 1.4 blending operations which are supported for all output devices.) Overprinting is not allowed for devices with an additive process color model. With files that use overprinting, the appearance of the resulting image can differ between devices which produce RGB output versus devices which produce CMYK output. Ghostscript automatically overprints (if needed) when the output device uses a subtractive process color model. For example, if the file is using overprinting, differences can be seen in the appearance of the output from the tiff24nc and tiff32nc devices which use an RGB and a CMYK process color models.

Most of the Ghostscript output devices do not have file formats which support spot colors. Instead spot colors are converted using the tint transform function contained within the color space definition.. However there are several devices which have support for spot colors. The PSD format (Adobe Photoshop) produced by the psdcmyk device contains both the raster data plus an equivalent CMYK color for each spot color. This allows Photoshop to simulate the appearance of the spot colors. The display device (MS Windows, OS/2, gtk+) can be used with different color models: Gray, RGB, CMYK only, or CMYK plus spot colors (separation). The display device, when using its CMYK plus spot color (separation) mode, also uses an equivalent CMYK color to simulate the appearance of the spot color. The tiffsep device creates output files for each separation (CMYK and any spot colors present). It also creates a composite CMYK file using an equivalent CMYK color to simulate the appearance of spot colors. The xcfcmyk device creates output files with spot colors placed in separate alpha channels. (The XCF file format does not currently directly support spot colors.)

Читайте также:  Что значит черновик в одноклассниках в сообщениях

Overprinting with spot colors is not allowed if the tint transform function is being used to convert spot colors. Thus if spot colors are used with overprinting, then the appearance of the result can differ between output devices. One result would be obtained with a CMYK only device and another would be obtained with a CMYK plus spot color device. In a worst case situation where a file has overprinting with both process (CMYK) and spot colors, it is possible to get three different appearances for the same input file using the tiff24nc (RGB), tiff32nc (CMYK), and tiffsep (CMYK plus spot colors) devices.

In Adobe Acrobat, viewing of the effects of overprinting is enabled by the ‘Overprint Preview’ item in the ‘Advanced’ menu. This feature is not available in the free Acrobat Reader. The free Acrobat Reader also uses the tint transform functions to convert spot colors to the appropriate alternate color space.

How Ghostscript finds files

If the test succeeds, Ghostscript tries to open the file using the name given. Otherwise it tries directories in this order:

Finding PostScript Level 2 resources

Adobe specifies that resources are installed in a single directory. Ghostscript instead maintains a list of resource directories, and uses an extended method for finding resource files.

The search for a resource file depends on whether the value of the system parameter GenericResourceDir specifies an absolute path. The user may set it as explained in Resource-related parameters.

If the value of the system parameter GenericResourceDir is an absolute path (the default), Ghostscript assumes a single resource directory. It concatenates :

If the value of the system parameter GenericResourceDir is not an absolute path, Ghostscript assumes multiple resource directories. In this case it concatenates :

To look up fonts, after exhausting the search method described in the next section, it concatenates together

Note that even although the system parameters are named «somethingDir», they are not just plain directory names: they have » / » on the end, so that they can be concatenated with the category name or font name.

Font lookup

CID fonts (e.g. Chinese, Japanese and Korean) are found using a different method.

Differences between search path and font path
Search path Font path
-I switch -sFONTPATH= switch
GS_LIB and GS_LIB_DEFAULT environment variables GS_FONTPATH environment variable
Consulted first Consulted only if search path and FontResourceDir don’t provide the file.
Font-name-to-file-name mapping given in Fontmap files; aliases are possible, and there need not be any relation between the font name in the Fontmap and the FontName in the file. Font-name-to-file-name mapping is implicit – the FontName in the file is used. Aliases are not possible.
Only fonts and files named in Fontmap are used. Every Type 1 font file in each directory is available; if TrueType fonts are supported (the ttfont.dev feature was included when the executable was built), they are also available.

If you are using one of the following types of computer, you may wish to set the environment variable GS_FONTPATH to the value indicated so that Ghostscript will automatically acquire all the installed Type 1 (and, if supported, TrueType) fonts (but see below for notes on systems marked with «*»):

Suggested GS_FONTPATH for different systems
System type GS_FONTPATH
Digital Unix /usr/lib/X11/fonts/Type1Adobe
Ultrix /usr/lib/DPS/outline/decwin
HP-UX 9 /usr/lib/X11/fonts/type1.st/typefaces
IBM AIX /usr/lpp/DPS/fonts/outlines
/usr/lpp/X11/lib/X11/fonts/Type1
/usr/lpp/X11/lib/X11/fonts/Type1/DPS
NeXT /NextLibrary/Fonts/outline
* SGI IRIX /usr/lib/DPS/outline/base
/usr/lib/X11/fonts/Type1
SunOS 4.x
(NeWSprint only)
newsprint_2.5/SUNWsteNP/reloc/$BASEDIR/NeWSprint/
small_openwin/lib/fonts
** SunOS 4.x /usr/openwin/lib/X11/fonts/Type1/outline
** Solaris 2.x /usr/openwin/lib/X11/fonts/Type1/outline
VMS SYS$COMMON:[SYSFONT.XDPS.OUTLINE]

are already represented among the ones distributed as part of Ghostscript; and on some test files, Sun’s fonts have been shown to cause incorrect displays with Ghostscript.

These paths may not be exactly right for your installation; if the indicated directory doesn’t contain files whose names are familiar font names like Courier and Helvetica, you may wish to ask your system administrator where to find these fonts.

CID fonts

CID fonts are PostScript resources containing a large number of glyphs (e.g. glyphs for Far East languages, Chinese, Japanese and Korean). Please refer to the PostScript Language Reference, third edition, for details.

CID font resources are a different kind of PostScript resource from fonts. In particular, they cannot be used as regular fonts. CID font resources must first be combined with a CMap resource, which defines specific codes for glyphs, before it can be used as a font. This allows the reuse of a collection of glyphs with different encodings.

The simplest method to request a font composed of a CID font resource and a CMap resource in a PostScript document is

CID fonts must be placed in the /Resource/CIDFont/ directory. They are not found using Font lookup on the search path or font path.

CID font substitution

Automatic CIDFont Substitution

In general, it is highly recommended that CIDFonts used in the creation of PDF jobs should be embedded or available to Ghostscript as CIDFont resources, this ensures that the character set, and typeface style are as intended by the author.

As with any font containing large numbers of glyphs, DroidSansFallback.ttf is quite large (

Explicit CIDFont Substitution

The file forms a table of records, each of which should use one of three formats, explained below. Users may modify Resource/Init/cidfmap to configure Ghostscript for a specific need. Note that the default Ghostscript build includes such configuration and resource files in a rom file system built into the executable. So, to ensure your changes have an effect, you should do one of the following: rebuild the executable; use the «-I» command line option to add the directory containing your modified file to Ghostscript’s search path; or, finally, build Ghostscript to use disk based resources.

Format 1

To substitute a CID font resource with another CID font resource, add a record like this :

Format 2

To substitute (emulate) a CID font resource with a TrueType font file, add a record like this :

Where keys&values are explained in the table below.

Currently only CIDFontType 2 can be emulated with a TrueType font. The TrueType font must contain enough characters to cover an Adobe character collection, which is specified in Ordering and used in documents.

Format 3

To point Ghostscript at a specific CIDFont file outside it’s «normal» resource search path :

where CIDName is a name of CID font resource being used by a document, and «path/to/cid/font/file» is the path to the Postscript CIDFont file, including the file name. NOTE: the CIDFont file, when executed by the Postscript interpreter, must result in a CIDFont resource being defined whose CIDFontName matches the «CIDName» key for the current record. I.E. an entry with the key /PingHei-Bold must reference a file which creates a CIDFont resource called «PingHei-Bold». To substitute a file based CIDFont for a differently named CIDFont, use formats 1 and 3 in combination (the order of the entries is not important).

The trailing semicolon and the space before it are both required.

Format 1:
Format 2:

/Batang > ;
/Gulim > ;
/Dotum > ;

Format 1 & 2
Format 3:
Format 1 & 3

/Ryumin-Light /PMingLiU ;
/PMingLiU (/usr/local/share/font/cidfont/PMingLiU.cid) ;

The win32 installer of recent version of ghostscript has a checkbox for «Use Windows TrueType fonts for Chinese, Japanese and Korean» to optionally update lib/cidfmap with the common CJK fonts provided by Microsoft products. The script can also be run separately (e.g. against a network drive with windows CJK fonts):

Note that the font file path uses Postscript syntax. Because of this, backslashes in the paths must be represented as a double backslash.

Where is the same byte sequence converted to a hex string. This lets you specify a name using any sequence of bytes through the encodings available for Postscript strings.

Note that loading truetype fonts directly from /Resources/CIDFont is no longer supported. There is no reliable way to generate a character ordering for truetype fonts. The 7.0x versions of Ghostscript supported this by assuming a Japanese character ordering. This is replaced in the 8.0x and later releases with the more general cidfmap mechanism.

The PDF specification requires CID font files to be embedded, however some documents omit them. As a workaround the PDF interpreter applies an additional substitution method when a requested CID font resource is not embedded and it is not available. It takes values of the keys Registry and Ordering from the CIDFontSystem dictionary, and concatenates them with a dash inserted. For example, if a PDF CID font resource specifies

Please note that when a PDF font resource specifies

Consequently, if you want to handle any PDF document with non-embedded CID fonts (which isn’t a correct PDF), you need to create a suitable lib/cidfmap by hand, possibly a specific one for each document.

Using Unicode True Type fonts

Ghostscript can make use of Truetype fonts with a Unicode character set. To do so, you should generate a (NOTE: non-standard!) Postscript or PDF job where the relevant text is encoded as UTF-16. Ghostscript may be used for converting such jobs to other formats (Postscript, PDF, PXL etc). The resulting output will be compliant with the spec (unlike the input).

To render an UTF-16 encoded text, one must do the following :

Please note that /Registry (Adobe) /Ordering (Identity) won’t properly work for Unicode documents, especially for the searchability feature (see CID font substitution).

Temporary files

Where Ghostscript puts temporary files
Platform Filename Location
MS Windows and OpenVMS _temp_ XX.XXX Current directory
OS/2 gs XXXXXX Current directory
Unix gs_ XXXXX /tmp

You can change in which directory Ghostscript creates temporary files by setting the TMPDIR or TEMP environment variable to the name of the directory you want used. Ghostscript currently doesn’t do a very good job of deleting temporary files if it exits because of an error; you may have to delete them manually from time to time.

Notes on specific platforms

Word size (32 or 64 bits)

The original PostScript language specification, while not stating a specific word sise, defines ‘typical’ limits which make it clear that it was intended to run as a 32-bit environment. Ghostscript was originally coded that way, and the heritage remains within the code base.

Because the Ghostscript PDF interpreter is currently written in PostScript, it proved necessary to add support for 64-bit integers so that we could process PDF files which exceed 2GB in size. This is the only real purpose in adding support for large integers, however since that time, we have made some efforts to allow for the use of 64-bit words; in particular the use of integers, but also lifting the 64K limit on strings and arrays, among other areas.

However this is, obviously, dependent on the operating system and compiler support available. Not all builds of Ghostscript will support 64-bit integers, though some 32-bit builds (eg Windows) will.

Even when the build supports 64-bit words, you should be aware that there are areas of Ghostscript which do not support 64-bit values. Sometimes these are dependent on the build and other times they are inherent in the architecture of Ghostscript (the graphics library does not support 64-bit co-ordinates in device space for example, and most likely never will).

The Ghostscript distribution includes some Unix shell scripts to use with Ghostscript in different environments. These are all user-contributed code, so if you have questions, please contact the user identified in the file, not Artifex Software.

pv.sh Preview a specified page of a dvi file in an X window sysvlp.sh System V 3.2 lp interface for parallel printer pj-gs.sh Printing on an H-P PaintJet under HP-UX unix-lpr.sh Queue filter for lpr under Unix; its documentation is intended for system administrators lprsetup.sh Setup for unix-lpr.sh

where the «disk» and «directory» specify where the Ghostscript executable is located. For instance,

$ define ghostscript_device dua1:[ghostscript_510]
$ define gs_lib ghostscript_device:

If the «directory» name ends with a closing square bracket » ] «, it is taken to refer to a real directory, for instance

allows Ghostscript to find its initialization files in the Ghostscript directory even if that’s not where the executable resides.

$ convert/fdl=streamlf.fdl input-file output-file

where the contents of the file STREAMLF.FDL are

Using X Windows on VMS

If you are using on an X Windows display, you can set it up with the node name and network transport, for instance

and then run Ghostscript by typing gs at the command line.

MS Windows

The name of the Ghostscript command line executable on MS Windows is gswin32c / gswin64c so use this instead of the plain ‘ gs ‘ in the quickstart examples.

When passing options to ghostcript through a batch file wrapper such as ps2pdf.bat you need to substitute ‘#’ for ‘=’ as the separator between options and their arguments. For example:

Ghostscript treats ‘#’ the same internally, and the ‘=’ is mangled by the command shell.

There is also an older version for MS Windows called just gswin32 that provides its own window for the interactive postscript prompt. The executable gswin32c / gswin64c is usually the better option since it uses the native command prompt window.

For printer devices, the default output is the default printer. This can be modified as follows.

MS-DOS

Note: Ghostscript is no longer supported on MS-DOS.

Invoking Ghostscript from the command prompt in Windows is supported by the Windows executable described above.

X Windows

Ghostscript looks for the following resources under the program name ghostscript and class name Ghostscript ; the ones marked «**» are calculated from display metrics:

X Windows resources
Name Class Default
background Background white
foreground Foreground black
borderColor BorderColor black
borderWidth BorderWidth 1
geometry Geometry NULL
xResolution Resolution **
yResolution Resolution **
useExternalFonts UseExternalFonts true
useScalableFonts UseScalableFonts true
logExternalFonts LogExternalFonts false
externalFontTolerance ExternalFontTolerance 10.0
palette Palette Color
maxGrayRamp MaxGrayRamp 128
maxRGBRamp MaxRGBRamp 5
maxDynamicColors MaxDynamicColors 256
useBackingPixmap UseBackingPixmap true
useXPutImage UseXPutImage true
useXSetTile UseXSetTile true

X resources

/.Xdefaults on Unix) in a form like this:

Ghostscript*geometry: 595×842-0+0
Ghostscript*xResolution: 72
Ghostscript*yResolution: 72

Then merge these resources into the X server’s resource database:

Working around bugs in X servers

X device parameters

SCO Unix

Because of bugs in the SCO Unix kernel, Ghostscript will not work if you select direct screen output and also allow it to write messages on the console. If you are using direct screen output, redirect Ghostscript’s terminal output to a file.

Command line options

Unless otherwise noted, these switches can be used on all platforms.

Читайте также:  что делает мужчина после расставания

General switches

Input control

Because Ghostscript must initialize the PostScript environment before executing the commands specified by this option it should be specified after other setup options. Specifically this option ‘bind’s all operations and sets the systemdict to readonly.

File searching

Note that by «library files» here we mean all the files identified using the search rule under «How Ghostscript finds files» above: Ghostscript’s own initialization files, fonts, and files named on the command line.

Setting parameters

can be equivalently performed by

can be equivalently performed by

Suppress messages

Rendering parameters

By default InterpolateControl is 1 and the image rendering for images that have /Interpolate true are interpolated to the full device resolution. Otherwise, images are rendered using the nearest neighbour scaling (Bresenham’s line algorithm through the image, plotting the closest texture coord at each pixel). When downscaling this results in some source pixels not appearing at all in the destination. When upscaling, each source pixels will cover at least one destination pixel.

When the control_value is greater than 1 interpolation is performed for images with /Interpolate true as long as the image scaling factor on either axis is larger than the control_value. Also, the interpolation only produces images that have (device resolution / control_value) maximum resolution rather than full device resolution. This allows for a performance vs. quality tradeoff since the number of pixels produced by the interpolation will be a fraction of the interpolated pixels at full device resolution. Every source pixel will contribute partially to the destination pixels.

Computationally, image interpolation is much more demanding than without interpolation (lots of floating point muliplies and adds for every output pixel vs simple integer additions, subtractions, and shifts).

In all but special cases image interpolation uses a Mitchell filter function to scale the contributions for each output pixel. When upscaling, every output pixel ends up being the weighted sum of 16 input pixels, When downscaling more source pixels will contribute to the interpolated pixels. Every source pixel has some effect on the output pixels.

Further note; because this feature relies upon rendering the input it is incompatible, and will generate an error on attempted use, with any of the vector output devices.

Page parameters

-sNupControl= Nup_option_string This option specifies the N-up nesting to be performed. The pages are scaled and arranged on the current PageSize «master» page according the the option.

Printer devices typically reallocate their memory whenever the transparency use of a page changes (from one page having transparency, to the next page not having transparency, or vice versa). This would cause problems with Nup, possibly leading to lost or corrupt pages in the output. To avoid this, the Nup device changes the parameters of the page to always set the PageUsesTransparency flag. While this should be entirely transparent for the user and not cause extra transparency blending operations during the standard rendering processes for most devices, it may cause devices to use the clist rather than PageMode.

Font-related parameters

Resource-related parameters

A note for Windows users, Artifex recommends the use of the forward slash delimiter due to the special interpretation of \» by the Microsoft C startup code. See Parsing C Command-Line Arguments for more information.

Adobe specifies GenericResourceDir to be an absolute path to a single resource directory. Ghostscript instead maintains multiple resource directories and uses an extended method for finding resources, which is explained in «Finding PostScript Level 2 resources».

Default value is (./Resource/) for Unix, and an equivalent one on other platforms.

Default value is (./Font/) for Unix, and an equivalent one on other platforms.

Interaction-related parameters

Device and output selection parameters

Deferred Page Rendering

Pages that are saved instead of printed are retained until the list of saved pages is emptied by the flush command of the saved-pages= command string.

Pages can be printed in reverse or normal order, or selected pages, including all even or all odd, and multiple collated copies can be produced. Since pages are saved until the flush command, pages can be printed multiple times, in any order.

Refer to the SavedPages document for details.

EPS parameters

-dNOEPS Prevent special processing of EPS files. This is useful when EPS files have incorrect Document Structuring Convention comments.

ICC color parameters

The /disable setting ignores all overprint (and overprint mode) from the input.

If /simulate is set, then pages with overprint (or overprint mode) set for CMYK or Separation colors will be internally maintained and output to RGB or Gray devices.

-sICCProfilesDir= path Set a directory in which to search for the above profiles. The directory path must end with a file system delimiter.

A note for Windows users, Artifex recommends the use of the forward slash delimiter due to the special interpretation of \» by the Microsoft C startup code. See Parsing C Command-Line Arguments for more information.

Other parameters

Example usage is: Note: The ^D does not result in an end-of-file action on stdin as it may on some PostScript printers that rely on TBCP (Tagged Binary Communication Protocol) to cause an out-of-band ^D to signal EOF in a stream input data. This means that direct file actions on stdin such as flushfile and closefile will affect processing of data beyond the ^D in the stream.

-dSAFER IMPORTANT NOTE: Ghostscript now (as of 9.50) defaults to SAFER being active.

Enables access controls on files. Access controls fall into three categories, files from which Ghostscript is permitted to read, ones to which it is permitted to write, and ones over which it has «control» (i.e. delete/rename). These access controls apply to all files accessed via Ghostscript’s internal interface to the C library file handling. Whilst we have taken considerable pains to ensure that all the code we maintain (as well as the so called «contrib» devices, that are devices included in our release packages, but not strictly maintained by the Ghostscript development team) uses this interface, we have no control over thirdparty code.

This is an entirely new implementation of SAFER for Ghostscript versions 9.50 and later. Earlier versions (see «-dOLDSAFER») relied on storing the file permission lists in Postscript VM (Virtual Memory), and only applied file access permissions to the Postscript file related operators. It relied on restricting the function of setpagedevice to avoid the device code from being manipulated into opening arbitrary files. The application of the file permissions was done within the internal context of the Postscript interpreter, and some other aspects of the Postscript restrictions were applied in the Postscript environment. With so many of the feature’s capabilities relying on the Postscript context and environment, by using other (Ghostscript specific) features maliciously, the restrictions could be overridden.

Permits access to any file in the directory: «/path/to/directory» and any child of that directory.

Important Note for Windows Users:
The file/path pattern matching is case sensitive, even on Windows. This is a change in behaviour compared to the old code which, on Windows, was case insensitive. This is in recognition of changes in Windows behaviour, in that it now supports (although does not enforce) case sensitivity.

Adds a path, or list of paths, to the all the above lists. A list of paths is a series of paths separated by the appropriate path list separator for your platform (for example, on Unix-like systems it is «:» and on MS Windows it is «;»).

‘*’ may be used as a wildcard in the above paths to mean «any character other than the directory separator. Do not use two or more *’s without intervening characters.

SAFER mode also prevents changing the /GenericResourceDir, /FontResourceDir and either the /SystemParamsPassword or the /StartJobPassword.

Improving performance

Ghostscript attempts to find an optimum balance between speed and memory consumption, but there are some cases in which you may get a very large speedup by telling Ghostscript to use more memory.

Please note that this discussion relates to devices which produce a bitmap format as the output. These parameters have no effect on the vector devices, such as pdfwrite.

This can also be useful in processing large documents when using a high-level (vector) output device (like pdfwrite) that maintains significant internal state.

Summary of environment variables

Debugging

The information here describing is probably interesting only to developers.

Debug switches

There are several debugging switches that are detected by the interpreter. These switches are available whether or not Ghostscript was built with the DEBUG macro defined to the compiler (refer to building a debugging configuration).

-dCCFONTDEBUG Compiled Fonts
-dCFFDEBUG CFF Fonts
-dCMAPDEBUG CMAP
-dDOCIEDEBUG CIE color
-dEPSDEBUG EPS handling
-dFAPIDEBUG Font API
-dINITDEBUG Initialization
-dPDFDEBUG PDF Interpreter
-dPDFWRDEBUG PDF Writer
-dSETPDDEBUG setpagedevice
-dSTRESDEBUG Static Resources
-dTTFDEBUG TTF Fonts
-dVGIFDEBUG ViewGIF
-dVJPGDEBUG ViewJPEG

The following switch affects what is printed, but does not select specific items for printing:

/ include file name and line number on all trace output

These switches select debugging options other than what should be printed:

Visual Trace

Visual Trace allows to view internal Ghostscript data in a graphical form while execution of C code. Special instructions to be inserted into C code for generating the output. Client application rasterizes it into a window.

1. The graphical output uses a hardcoded scale. An advanced client would provide a scale option via user interface.

2. Breaks are not implemented in the client. If you need a step-by-step view, you should use an interactive C debugger to delay execution at breakpoints.

Appendix: Paper sizes known to Ghostscript

The paper sizes known to Ghostscript are defined at the beginning of the initialization file gs_statd.ps ; see the comments there for more details about the definitions. The table here lists them by name and size. gs_statd.ps defines their sizes exactly in points, and the dimensions in inches (at 72 points per inch) and centimeters shown in the table are derived from those, rounded to the nearest 0.1 unit. A guide to international paper sizes can be found at

Paper sizes known to Ghostscript
U.S. standard
Inches mm Points
Name W × H W × H W × H
11×17 11.0 17.0 279 432 792 1224 11×17in portrait
ledger 17.0 11.0 432 279 1224 792 11×17in landscape
legal 8.5 14.0 216 356 612 1008
letter 8.5 11.0 216 279 612 792
lettersmall 8.5 11.0 216 279 612 792
archE 36.0 48.0 914 1219 2592 3456
archD 24.0 36.0 610 914 1728 2592
archC 18.0 24.0 457 610 1296 1728
archB 12.0 18.0 305 457 864 1296
archA 9.0 12.0 229 305 648 864
ISO standard
a0 33.1 46.8 841 1189 2384 3370
a1 23.4 33.1 594 841 1684 2384
2 16.5 23.4 420 594 1191 1684
a3 11.7 16.5 297 420 842 1191
a4 8.3 11.7 210 297 595 842
a4small 8.3 11.7 210 297 595 842
a5 5.8 8.3 148 210 420 595
a6 4.1 5.8 105 148 297 420
a7 2.9 4.1 74 105 210 297
a8 2.1 2.9 52 74 148 210
a9 1.5 2.1 37 52 105 148
a10 1.0 1.5 26 37 73 105
isob0 39.4 55.7 1000 1414 2835 4008
isob1 27.8 39.4 707 1000 2004 2835
isob2 19.7 27.8 500 707 1417 2004
isob3 13.9 19.7 353 500 1001 1417
isob4 9.8 13.9 250 353 709 1001
isob5 6.9 9.8 176 250 499 709
isob6 4.9 6.9 125 176 354 499
c0 36.1 51.1 917 1297 2599 3677
c1 25.5 36.1 648 917 1837 2599
c2 18.0 25.5 458 648 1298 1837
c3 12.8 18.0 324 458 918 1298
c4 9.0 12.8 229 324 649 918
c5 6.4 9.0 162 229 459 649
c6 4.5 6.4 114 162 323 459
JIS standard
jisb0 1030 1456
jisb1 728 1030
jisb2 515 728
jisb 364 515
jisb4 257 364
jisb5 182 257
jisb6 128 182
ISO/JIS switchable
b0 (see * below)
b1 (see * below)
b2 (see * below)
b3 (see * below)
b4 (see * below)
b5 (see * below)
Other
flsa 8.5 13.0 216 330 612 936 U.S. foolscap
flse 8.5 13.0 216 330 612 936 European foolscap
halfletter 5.5 8.5 140 216 396 612
hagaki 3.9 5.8 100 148 283 420 Japanese postcard

Appendix: X default font mappings

Standard X servers

Regular fonts

Symbol fonts

Dingbat fonts

Sun OpenWindows

For Sun’s X11/NeWS one can use the OpenWindows scalable fonts instead, which gives good output for any point size. In this environment, the relevant section of the resource file should look like this:

Running Ghostscript with third-party font renderers

Font API (FAPI) is a feature which allows to attach third-party font renderers to Ghostscript. This section explains how to run Ghostscript with third-party font renderers, such as UFST. NOTE: FreeType is now the default font renderer for Ghostscript.

Note: To run Ghostscript with UFST you need a license from Monotype Imaging. Please ignore issues about UFST if you haven’t got it.

Important note: Third-party font renderers may be incompatible with devices that can embed fonts in their output (such as pdfwrite), because such renderers may store fonts in a form from which Ghostscript cannot get the necessary information for embedding, for example, the Microtype fonts supplied with the UFST. Ghostscript can be configured to disable such renderers when such a device is being used.

As of Ghostscript version 9.0, Ghostscript uses Freetype 2.4.x as the default font scaler/renderer.

To run Ghostscript with UFST, you first need to build Ghostscript with the UFST bridge. Refer How to build Ghostscript with UFST. Both bridges may run together.

Font files, which are being handled with FAPI, may reside in any directory in your hard disk. Paths to them to be specified in FAPIfontmap and with special command line arguments, explained below. The path may be either absolute or relative. Relative ones are being resolved from the path, which is specified in FAPIconfig file.

The file FAPIfontmap is actually special PostScript code. It may include records of 2 types : general records and FCO records (see below).

A general record describes a font, which is being rendered with FAPI. They must end with semicolon. Each general record is a pair. The first element of the pair is the font name (the name that PostScript documents use to access the font, which may differ from real name of the font which the font file defines). The second element is a dictionary with entries :

Example of a general FAPI font map record :

Note that FAPIfontmap specifies only instances of Font category. CID fonts to be listed in another map file.

Example of FAPI CID font map record :

The control file FAPIconfig defines 4 entries :

Copyright © 2000-2021 Artifex Software, Inc. All rights reserved.

Ghostscript version 9.55.0, 27 September 2021

Источник

Сказочный портал