Skip to main content
Inspiring
November 27, 2017
Answered

Where do I put a "Open URL or File" .pdf in the HTML5 .zip file?

  • November 27, 2017
  • 2 replies
  • 1045 views

I have a .pdf that I need to access from a button that's action is "Open URL or file".

Where do I put the target .pdf in the published (HTML5) .zip file?

I know the process for doing it if I'm publishing in .swf, but the HTML5 solution is eluding me.  I thought I just needed to add it to the .zip (didn't work), then I tried putting it in the "Assets" folder...also didn't' work.

As always, your help is greatly appreciated.

Jay

This topic has been closed for replies.
Correct answer travlr588

OK....I figured it out; I still have to do it the same way I did with .swf files.

After publishing the .zip file, I opened it up and found the "imsmanifest.xml" file.  Open the imsmanifest.xml file in a text editor and find the <resources identifier => tag.  Within this tag, enter the file you want to link to in a self-closing href tag. 

Example:  <file href="nameOfYour.file"/>

Then save the imsmanifest.xml file and same the .zip file.  

 

This threw me because I'd have bet big money that we'd been able to just drop the file into the published HTML .zip before...maybe something change with ver 2017.

 

As always, thanks for the help Lilibyri...the exchange at least got me thinking!

Jay

2 replies

travlr588AuthorCorrect answer
Inspiring
November 28, 2017

OK....I figured it out; I still have to do it the same way I did with .swf files.

After publishing the .zip file, I opened it up and found the "imsmanifest.xml" file.  Open the imsmanifest.xml file in a text editor and find the <resources identifier => tag.  Within this tag, enter the file you want to link to in a self-closing href tag. 

Example:  <file href="nameOfYour.file"/>

Then save the imsmanifest.xml file and same the .zip file.  

 

This threw me because I'd have bet big money that we'd been able to just drop the file into the published HTML .zip before...maybe something change with ver 2017.

 

As always, thanks for the help Lilibyri...the exchange at least got me thinking!

Jay

Inspiring
November 28, 2017

Hhm,
For me it works on Cp 2017 without having to mess around with "imsmanifest.xml" or any other file. I just select 'Open URL or file; from the 'Actions' - 'On Success' drop down, use the file selector that comes up when clicking the folder icon to navigate to the file I want to include and that's it. It even copies the file automatically to the roots of my course package on publishing. Guess this is new; had to copy it manually there on earlier versions.

travlr588Author
Inspiring
November 29, 2017

Gaanf,

I want to say that I'd done it that way in Cap 9...was able to identify just the file name (i.e. myFile.pdf) using Open URL or file and then drop that file into the published .zip.  That didn't work at all this time.

If I understand you right, you're saying use the Open URL... and then browser to the file location and select it there.  Once you do this, the file will be added to your Captivate project and can be accessed anywhere the project is run?  For example, the file would be located on my desktop, but the course will eventually run from my organization's LMS.  Will your method work in this instance?

If so, that would be way easier than the way I did it.

 

v/r

 

Jay

Lilybiri
Legend
November 27, 2017

Did you try to put it in the Callees folder?

travlr588Author
Inspiring
November 27, 2017

I did after you mentioned it...still doesn't work.  I also tried dragging the file into the "Library" and then publishing, but that doesn't work either.

I know I got this to work before...I thought it was as simple as dragging the file into the main level of the .zip file but that's not working.

Lilybiri
Legend
November 27, 2017

Did you check the path when defining the 'URL'?