OGR_LINK_FIELD to filename in a Geospatial PDF

المشرف العام

Administrator
طاقم الإدارة
Im using gdal_translate to create a Geospatial PDF. im trying to add file path to my feature when clicking on them by using:

-co OGR_LINK_FIELD= i creating my pdf in the main folder and the files that i link to is in main/files/unique.jpg

In my vrt layer is i column whit "Filepaths".

my code is:

gdal_translate -of PDF \main\input_background.tif \main\output.pdf -co OGR_DATASOURCE=\main\data\vrt_input.vrt -co OGR_LINK_FIELD=Filepaths -co TILED=YESin the shape file, used to create the vrt is column Filepaths filled whit:

/images/unique.jpgIn the resulting PDF I see that file:// is added to the link, but when i click on it it open the brwoser, but doesn't show the image.

If i place the output pdf in the same folder as the images and set the filepath to

unique.jpg it opens the image.

What can be wrong? Or is it not possible to use relative paths in this ?



أكثر...
 
أعلى