dm_ghostscript Module

Wrapper module around Ghostscript, for PostScript and PDF processing.


Uses

  • module~~dm_ghostscript~~UsesGraph module~dm_ghostscript dm_ghostscript module~dm_error dm_error module~dm_ghostscript->module~dm_error module~dm_kind dm_kind module~dm_ghostscript->module~dm_kind module~dm_util dm_util module~dm_ghostscript->module~dm_util module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_util->module~dm_error module~dm_util->module~dm_kind

Used by

  • module~~dm_ghostscript~~UsedByGraph module~dm_ghostscript dm_ghostscript module~dmpack dmpack module~dmpack->module~dm_ghostscript

Functions

public function dm_ghostscript_ps_to_pdf(input, output) result(rc)

Converts PostScript file input to PDF file output by executing ps2pdf(1). On error, an empty PDF file may be created. This function requires Ghostscript to be installed locally.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input

Path of PostScript file.

character(len=*), intent(in) :: output

Path of PDF file.

Return Value integer

public function dm_ghostscript_set_pdf_meta(input, output, title, author, subject, creator, producer) result(rc)

Reads PDF file input, adds meta data using pdfmark, and writes result to output. The output path must be different from the input path. The output document will be in PDF 1.4 format and printing quality. List the meta data with pdfinfo(1):

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input

Path of PDF input file.

character(len=*), intent(in) :: output

Path of PDF output file.

character(len=*), intent(in), optional :: title

Document title.

character(len=*), intent(in), optional :: author

Document author.

character(len=*), intent(in), optional :: subject

Document subject.

character(len=*), intent(in), optional :: creator

Document creator.

character(len=*), intent(in), optional :: producer

Document producer.

Return Value integer

public function dm_ghostscript_version(name, found) result(version)

Returns Ghostscript version as allocatable string.

Arguments

Type IntentOptional Attributes Name
logical, intent(in), optional :: name

Add prefix ghostscript/.

logical, intent(out), optional :: found

Returns .true. if ghostscript has been found.

Return Value character(len=:), allocatable

Version string.