Skip to main content
Participant
March 8, 2017
Question

Embed Jpg into a PDF

  • March 8, 2017
  • 2 replies
  • 1679 views

Hello all

Here is what I am trying to do.

I am wanting to have a Building Plan (PDF)  that will be online for my clients to visit. That PDF will have have links embedded into it so that when a client click a link a Photo will come up that shows that area of the building.

The PDF should be easy for me to edit or add additional links/photos to, by editing the current PDF offline and then uploading it to replace the one that is already online.

Now mind you, I have some knowledge but I need to do it in the easiest way possible. Best case would be a document that has all the the pics, links and everything all in it, since one of the web pages I hope to have it will be one that is on a Google WebBuilder website so creating a HTML is not as easy. But not impossible if it is my hardest task in the whole process

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 8, 2017

If I understand you correctly you want to show/hide images in the PDF file itself when a user clicks a button. Is that right?

If so it can be done using form fields and a simple script. You would need to create two buttons, one to hold the image as its icon and another to act as the trigger to show/hide the first button.

Let's say they are called Image1 and Image1Trigger, respectively.

You create Image1 and set its icon to be the image, and then hide it.

You then set the MouseUp event of Image1Trigger to execute this JavaScript code:

var imageField = this.getField("Image1");

imageField.display = imageField.display==display.visible ? display.hidden : display.visible;

That's it, pretty much. When you click the trigger field the image field will become visible, and another click will hide it once more.

Participant
March 8, 2017

I am looking to have photos of parts of the building so that when someone is online looking at the PDF they can click an area on the Blueprint and a photo of that actual spot in the building will pop up.. Kind of like what alisterblack says above, but the issue is when I up load that pdf the attachments are not coming along and if I upload the Photo to my webpage the links are not the same as when I created the pdf offline

try67
Community Expert
Community Expert
March 8, 2017

If you do what I described the images will become embedded in the PDF and should work even on another computer (assuming the application used to open the file supports scripts).

alisterblack
Community Manager
Community Manager
March 8, 2017

Hi,

This should be easy to do with Acrobat DC.

Check the following documentation. Links and attachments in PDFs, Adobe Acrobat

(Discussion moved from Deployment for Creative Cloud for Team, Enterprise, & CS to Creating PDFs )

Participant
March 8, 2017

I have tried this, but the issue is fro creation to uploading it to peole seeing it on line, the links to the photos are not what I created offline

alisterblack
Community Manager
Community Manager
March 8, 2017

You would need to maintain the same structure when you upload it as these are relative links. So create a folder with all resources, link from the PDF to the resources and upload that whole folder to your website so that the relative links are maintained.