Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 403325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:12:23+00:00 2026-05-12T17:12:23+00:00

Hi I am embedding pdf file to my asp.net page like this <object data=…

  • 0

Hi
I am embedding pdf file to my asp.net page like this

<object data="..." type="application/pdf" width="300" height="200">
</object>

The problem is that I have created my own toolbar for pdf, and want to zoom in, out document from my toolbar image buttons. I know that I can embed JavaScript to pdf document, when creating document from scratch, but how can I embed javascript to pdf in html having only the path of that document?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:12:23+00:00Added an answer on May 12, 2026 at 5:12 pm

    Let the pdf document load. Once the document is ready, inject Javascript.

    However, note that Javascript, as executed by your browser is different from the Javascript executed by the Adobe reader plugin for your browser. The structure is similar but the DOM is entirely different.

    Further, Javascript in your HTML document cannot directly access/modify the DOM of the loaded pdf document. For that you will need to go through the reader plugin. I am sorry I have not used the reader plugin in this way. Take a look at the API:

    http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf

    and also read this guide:

    http://www.adobe.com/devnet/acrobat/pdfs/Acro6JSGuide.pdf

    These may be your best bet because very few people on SO seem to be working on Javascript for pdf. I have asked a few questions before but never got any responses 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm embedding a PDF in a web page with the following html <object id=pdf
i am embedding a javascript file inside an svg file like this: <svg xmlns:dc=http://purl.org/dc/elements/1.1/
Hi I am developing an ASP.net web application. I need to find the current
I'm trying to get Quartz.net working by embedding into my .Net MVC2 application. I
When embedding a flash object, is there a way to determine when it's fully
I'm embedding a JRE in an existing C application using the invocation API, and
I am looking at embedding Lua in a C++ application I am developing. My
I am looking at embedding perl 5.10 in a large C++ application compiled with
I'm embedding a Flash video into an HTML and would like the user to
I'm trying to embed a PDF file into a Word document using the OLE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.