# IcePdf viewer in Ignition 7.5.4

**URL:** <https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537>\
**Category:** Ignition\
**Created:** [December 6, 2012, 2:56pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537 "2012-12-06T14:56:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Steele](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mike\_Steele](https://forum.inductiveautomation.com/u/Mike_Steele)\
**Post date:** [December 6, 2012, 2:56pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/1 "2012-12-06T14:56:45Z")

</div>

Could you post an example of a script to hide toolbar, and fit in window for the IcePdf viewer module?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [December 6, 2012, 10:44pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/2 "2012-12-06T22:44:10Z")

</div>

Right now the module cannot be changed. There will be changes made to it later down the road, possibly in Ignition 7.7.

---

<div class="post-metadata">

**Author:** ![Mike\_Steele](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mike\_Steele](https://forum.inductiveautomation.com/u/Mike_Steele)\
**Post date:** [December 10, 2012, 8:22pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/3 "2012-12-10T20:22:22Z")

</div>

I found ways to use the ActiveX pdf viewer to format how I needed. For those that might need it:

[livedocs.adobe.com/acrobat\_sdk/9 … sible=true](http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?href=IAC_API_OLE_Objects.103.182.html&accessible=true)

is a list of methods.

Use “invokeFunction” to set values

My code is set on a timer every 4 seconds:

newbom = system.tag.read("[Client]NewBOM")  
currentbom = system.tag.read("[Client]CurrentBom")  
viewer = event.source.parent.getComponent(“PDFViewer”)

if event.source.value == 4 and newbom.value != currentbom.value:  
system.tag.write("[Client]CurrentBom",newbom.value) # set new path for pdf file  
viewer.invokeFunction(“setLayoutMode”,[“SinglePage”]) # show only one page   
viewer.invokeFunction(“setPageMode”,[“none”]) # do not show bookmarks  
viewer.invokeFunction(“setShowToolbar”,[0]) # do not show toolbar  
viewer.invokeFunction(“setShowScrollbars”,[0]) # do not show scrollbar  
viewer.invokeFunction(“setView”,[“Fit”]) # fit pdf to viewer size

Hope this helps someone.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [December 10, 2012, 8:53pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/4 "2012-12-10T20:53:39Z")

</div>

Mike - very nice! Thanks for sharing that.

---

<div class="post-metadata">

**Author:** ![jcjeppesen](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jcjeppesen](https://forum.inductiveautomation.com/u/jcjeppesen)\
**Post date:** [March 20, 2013, 4:20pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/5 "2013-03-20T16:20:40Z")

</div>

> [@Greg.Simpson](#):
>
> Right now the module cannot be changed. There will be changes made to it later down the road, possibly in Ignition 7.7.

Any way to open the viewer to fit to width selected?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [March 20, 2013, 5:26pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/6 "2013-03-20T17:26:11Z")

</div>

Not that I am aware of. If you are wanting to change the size of the PDF viewer in the runtime, or something like that, you could always stick the PDF comonent in a popup window and then anchor it to the top, bottom, left, and right. This will make a completely re sizable window in the runtime client.

---

<div class="post-metadata">

**Author:** ![tailfire](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tailfire](https://forum.inductiveautomation.com/u/tailfire)\
**Post date:** [March 23, 2013, 3:31pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/7 "2013-03-23T15:31:01Z")

</div>

I was curious if anyone has tried 3d pdf’s with this viewer? I also do SolidWorks modeling and I can export 3d pdf’s. I may play around with trying some 3d stuff. My gut instinct tells me that it wont work…

---

<div class="post-metadata">

**Author:** ![apple78](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@apple78](https://forum.inductiveautomation.com/u/apple78)\
**Post date:** [July 3, 2013, 7:11am UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/8 "2013-07-03T07:11:02Z")

</div>

I m prety new with inductive ,as a collage student majoring in computer programming ,I m wondering if my [c# pdf viewer](http://www.rasteredge.com/how-to/csharp-imaging/pdf-windows-viewer-create/) can be integrated in Ignition 7.7.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [July 10, 2013, 5:29pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/9 "2013-07-10T17:29:28Z")

</div>

I bet if you rewrote it Java and attached it to a resume you’d get a job interview if not an offer 😃

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [July 10, 2013, 11:30pm UTC](https://forum.inductiveautomation.com/t/icepdf-viewer-in-ignition-7-5-4/5537/10 "2013-07-10T23:30:07Z")

</div>

We only use Java in our applications. Sorry apple78. Also, by the looks of your website, you appear to be a business and not a student.
