5.2. Import File Formats

When opening a non-XCF image, some file formats have additional options that can be set to determine how GIMP will open the image. If that is the case, then a new dialog will open. This section will document the dialogs for all file formats that have such an import options dialog.

5.2.1. Import from PDF

Kuva 15.72. The PDF Import dialog

The PDF Import dialog

If you select a PDF file to open, GIMP will show an extra dialog with options specific to this file type.

Page selection

You can select pages by typing one or more page numbers or ranges, separated by commas. For example, 4-7,9 selects pages 4, 5, 6, 7, and 9 of the document. The default is to select all of the pages in the document.

Open pages as

If this is set to Images, then GIMP will open each of the selected pages as a separate image. If it is set to Layers, then GIMP will create one image with each of the selected pages in its own layer.

Load in reverse order

By default the first page is loaded first, meaning it will become the bottom layer. If you check this option, the first page will be loaded last and become the top-most layer.

Image size

The size of the image created is controlled by the Width, Height, and Resolution settings. A PDF document contains information about its width and height in units of physical length so it is meaningful to set the width or height of the image in pixels or its resolution in pixels per physical unit of length: as you set any of these three parameters, the other two will automatically adjust to match.

Use Anti-Aliasing

Check this box to apply antialiasing to text in the image.

Fill transparent areas with white

When checked, all transparent areas in PDF pages will be filled with white. When unchecked, transparent areas will stay transparent.

5.2.2. Import from PostScript

Kuva 15.73. The Postscript Import dialog

The Postscript Import dialog

If you select a PostScript file to open, GIMP will show an extra dialog with options specific to this file type.

Page selection

You can select pages by typing one or more page numbers or ranges, separated by commas. For example, 4-7,9 selects pages 4, 5, 6, 7, and 9 of the document. The default is to select all of the pages in the document. Note: this is only visible if there is more than one page.

Open pages as

If this is set to Images, then GIMP will open each of the selected pages as a separate image. If it is set to Layers, then GIMP will create one image with each of the selected pages in its own layer. Note: this is only visible if there is more than one page.

Rendering

The size of the image created is controlled by the Width, Height, and Resolution settings. A PostScript document contains information about its width and height in units of physical length so it is meaningful to set the width or height of the image in pixels or its resolution in pixels per physical unit of length: as you set any of these three parameters, the other two will automatically adjust to match.

Coloring

Select B/W to have GIMP create the image as a 2-color indexed image, Gray for a grayscale image, or Color for an RGB image (see Kohta 1, ”Kuva tyypit” for a full explanation of these different image modes). If you select Automatic then GIMP will try to determine the most suitable mode from the contents of the file.

Try Bounding Box

If this is checked, GIMP will use the bounding box information in the PostScript file to determine how much of the page to use: effectively, this is equivalent to cropping whitespace from the edges of the image. It is possible for a PostScript file to contain no bounding box information, in which case this option will be ignored.

Antialiasing

You can choose to have GIMP apply antialiasing separately for text and for graphics in the imported image. Either Weak or Strong antialiasing may be applied: usually you should select Strong.