PDF file do not open from Link.

4229
7
06-02-2015 08:31 AM
DiegoLlamas
Esri Contributor

Hi,

I am trying to open PDF file from a link in ArcGIS Online. Configure the Pop-up as a custom attribute display. Crim1.PNG

I also configure the IIS folder where the PDF files are stored.

Crim2.PNG

The columns from the layer and the PDF files have the exact same name but when I click on the link of the pop-up

crim4.PNG

The link open in a new page but I got a blank page, not the pdf.

crim3.PNG

What im doing wrong, do I need to configure something else?

Thanks for your help!

Diego Llamas

0 Kudos
7 Replies
SepheFox
Frequent Contributor

My guess is it is the spaces in the names that are causing problems. It is best practices to never have spaces in file or folder names. because of these kinds of issues.

0 Kudos
DiegoLlamas
Esri Contributor

Actually i have two fields one {NAME} with "MAPA DE CATASTRO" and the number of the grid (with space) and other field {GRID_ID} that just have the number of the grid. I have two PDFs, one with the name and one with the number (with no space "008.pdf") and none of them works. I think it has to be something with IIS or HTTP configuration, or something related with that.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Hi Diego,

I think the issue is that the link is not public. It is for the localhost.

Try this:

1) Upload the pdf file in google-drive with access to everyone.

2) Give the URL link of the pdf file in google-drive to ArcGIS Online.

Can you view the PDF file now?



Think Location
XanderBakker
Esri Esteemed Contributor

Is the MIME type (Multipurpose Internet Mail Extensions) correctly defined ("application/pdf") for ,pdf files?

If you specify the URL below in your browser does it open, does it return a blank page or an error?

http://localhost/Builder/PDF/10K/MAPA DE CATASTRO 008.pdf

If you copy a text file (like "test.txt", with some text in it) to the same folder and change the URL to:

http://localhost/Builder/PDF/10K/test.txt

... does that URL open the text file?

DiegoLlamas
Esri Contributor

Hi Xander,

I return a Blank page, I tried also Default.aspx using http://localhost/Builder/Default.asp and it gave me a blank page also. I checked the MIME type and I have application/pdf defined. I also tried this test in other computer and it worked fine with the exact same steps I previously showed, so it is something with my computer that I have not found yet. I compare all the settings with the other computer and they are the same, it is something specific I haven't found yet.

thanks for your help!

0 Kudos
XanderBakker
Esri Esteemed Contributor
DiegoLlamas
Esri Contributor

Xander,

Yes Static content is selected.

0 Kudos