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

Figur 15.57. 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.

Bildstorlek

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. Importera från Postscript

Figur 15.58. 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.

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 Avsnitt 1, ”Bildtyper” 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.

Prova begränsningsram

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.

Pages

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 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.

Kantutjämning

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.