setting the resolution (dpi) before importing geopdf files
Hi,
is it possible to set the resolution (dpi value) for geopdf import like doing the import with the gui?
is it possible to set the resolution (dpi value) for geopdf import like doing the import with the gui?
Tagged:
Answers
-
Hello,
The easiest way to set up an IMPORT command is to load a file into Global Mapper using the GUI, then save a workspace. A workspace is a script file, so you can open it in a text editor and look at the IMPORT command that gets generated.
The DPI used to import a PDF is in the LOAD_FLAGS parameter. This parameter takes a comma-separated list of values, and DPI is the second one. The first value is the frame index in the PDF, and you can use -1 to get all of them. UsingLOAD_FLAGS="-1,200"
will read an image from the PDF with a DPI of 200.
Cheers,
Bob -
Hello,
the import doesn't work as I expect.
If I load the PDF with a DPI of 75IMPORT FILENAME="V:\sample.pdf" FORMAT="PDF" LOAD_FLAGS="-1,75" SAMPLING_METHOD=BICUBIC PROJ="redLS150"
and I check the metadata for this layer the Render_DPI value has a value of 250. This was the setting of the last gui run.
Any idea what is going wrong with? I'm still using Global Mapper V21.0.
Cheers,
Daniel -
Hello,
I think it is not allowed to shorten the LOAD_FLAGS parameter. If I tryLOAD_FLAGS="-1,150,,1,2"
to render my PDF with 150 dpi my import script works well.
Cheers,
Daniel
Categories
- 12.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 834 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 935 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website


