Post

5 followers Follow
0
Avatar

Displaying PDF in Mag+?

Hi guys,

i wanna display a pdf file with about 9 pages in my vertical, and i want to export the pdf with my vertical...

 

ok sounds a bit confusing...

i wanna click a hotspot, and then i want to display the pdf-file in mag+ but the pdf shouldn't be on a web-server

Christoph Schmitt Answered

Please sign in to leave a comment.

9 comments

0
Avatar

Hello Christoph,

If you are trying to display a PDF file & have it come up/display so the user can page through it, you would have to host it on a web-server & provide a url address to it so that it can display in a web frame.  Otherwise you would have to break each page up into images & create a slideshow.

Regards,

Mike Rettew 

Mag+ Support Team

Mike Rettew 0 votes
0
Avatar

Hello Christoph, sorry for the delay.

A recent inquiry has led to some further thoughts on this.  While this is not something we have tested it may be possible, you would need an area to be able to swipe away from the HTML block though so it couldn't fill the entire screen. You would likely need to manually edit the XML to point the HTML block at a PDF file instead of an HTML file, and then rename the MIB file to a .ZIP, embed the PDF within that folder in the proper place (in place of the dummy HTML file) & then ZIP back up the containing folder & XML then renaming the .ZIP back to .MIB.

You're more than welcome to give this a try if this makes sense but this is not something we officially support or have tested as our platform has not been entirely designed to handle PDFs.  Only the iOS webkit would be able to handle PDFs at this time.

Regards,

Mike Rettew 

Mag+ Support Team

Mike Rettew 0 votes
0
Avatar

I think you can display a pdf file. I have succeeded to do so and there are two ways:

  1. Create a folder and place your pdf in it
  2. Create an html box and point the url to the pdf file >> /folder_with_pdf/pdf_filename.pdf
  3. The pdf file will be exported and the html box will render the pdf file as if it was a web page

Alternatively

  1. Create a folder and place your pdf in it
  2. Create a hotspot
  3. Hotspot Type: Html
  4. HTML File: point the url to the pdf file >> /folder_with_pdf/pdf_filename.pdf
  5. The hotspot will show the pdf on a full screen clear browser

 

Nikos Zafeiris 0 votes
0
Avatar

Nikos,

This is great!  We will be sure to test it ourselves as well.  Thank you for sharing.

Regards,

Mike Rettew 

Mag+ Support Team

Mike Rettew 0 votes
0
Avatar

Thanks a lot :D

METHOD 1 Didn't Work

METHOD 2 worked for me!   (MagPlus 5.0)

Christoph Schmitt 0 votes
0
Avatar

Sry My comment wasn't 100% correct:

Method 1 worked, but the PDF was Scaled to the box it should be displayed in.

it was rendered as 1 jpg and only the area which is displayed (i had a pdf with 3 pages. Magplus created a picture in which are the pages placed 1 page under the next. but the pdf was too long for the display-box, so the rest was cut off and i wasn't able to scroll down). so it didn't worked as i wanted.

but the second method, opened a new window with the pdf which the pages are also place 1 page under the next, but in this case i was able to scroll. so it worked as i wanted it to have  :D

Christoph Schmitt 0 votes
0
Avatar

This is very useful! Will try since we would love to have the PDF open without having to go to a server. Since we are doing both IOS and Android does it work for the later?

Nazim Beltran 0 votes
0
Avatar

Nazim,

For Android, natively our plugin will not process/display pdf format.  You may be able to embed your pdf into html, however most default Android browser do not support pdf.

Regards,

Mike Rettew 

Mag+ Support Team

Mike Rettew 0 votes