I want to display a PDF file in browser and control the font used in the PDF. For example, I should be able increase and decrease the font size.
Currently, I am using an <object>
element to display the PDF. To fetch this PDF I am making an HTTP request to the server and setting the URL attribute of the <object>
element. But this does not provide much ability to control the content of PDF document like increase and decrease the font size.
How can I control the font (increase and decrease) of a displayed PDF in Object tag? is there some way to do it via javascript?
My sample code is here:
<object width="auto"
height="auto"
classid="clsid:19DDC62D-DB2C-48BA-88F8-9678DCBE0257"
url="http://test.net/?doc_id=1212"/>