# system("AcroRd32.exe ")

**URL:** <https://www.ruby-forum.com/t/system-acrord32-exe/191726>\
**Category:** Rails\
**Created:** [July 16, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726 "2010-07-16T21:13:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 16, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/1 "2010-07-16T21:13:34Z")

</div>

Hi,

Is there a way to start Acrrobat reader on my local desktop by a ruby  
application running on the server by launching : system("AcroRd32.exe "  
?

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 16, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/2 "2010-07-16T21:38:03Z")

</div>

2010/7/16 Mamadou Touré [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi,
> 
> Is there a way to start Acrrobat reader on my local desktop by a ruby  
> application running on the server by launching : system("AcroRd32.exe "

I believe not, that will run it on the server. Would you want a  
website to be able to run applications on your PC? How about  
system(“del _._”) or rm \* dependent on your OS?

All the ruby and erb code is run on the server. Javascript is run in  
the browser of course.

Colin

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/3 "2010-07-17T16:40:19Z")

</div>

Colin L. wrote:

> 2010/7/16 Mamadou Tourï¿½ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > Hi,
> > 
> > Is there a way to start Acrrobat reader on my local desktop by a ruby  
> > application running on the server by launching : system("AcroRd32.exe "
> 
> I believe not, that will run it on the server. Would you want a  
> website to be able to run applications on your PC? How about  
> system(“del _._”) or rm \* dependent on your OS?
> 
> All the ruby and erb code is run on the server. Javascript is run in  
> the browser of course.
> 
> Colin

Hi Colin,

What I really need is to run the command system("AcroRd32.exe "), and  
not the system(“del _._”). so Maybe, I’ll try to have it called by the  
javascript.

Regards

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/4 "2010-07-17T18:24:44Z")

</div>

2010/7/17 Mamadou TourÃ© [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > All the ruby and erb code is run on the server. Â Javascript is run in  
> > the browser of course.
> > 
> > Colin
> 
> Hi Colin,
> 
> What I really need is to run the command system("AcroRd32.exe "), and  
> not the system(“del _._”). so Maybe, I’ll try to have it called by the  
> javascript.

I believe it is not possible to do it from javascript. I understand  
that _you_ want to run acrord32 and not something unpleasant, but the  
point is that if it were possible for you to do this then someone else  
_would_ so something unpleasant.

Why do you want to run acrord32 on the users pc?

Colin

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/5 "2010-07-17T19:21:57Z")

</div>

Colin L. wrote:

> 2010/7/17 Mamadou TourÃ© [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > > All the ruby and erb code is run on the server. Â Javascript is run in  
> > > the browser of course.
> > > 
> > > Colin
> > 
> > Hi Colin,
> > 
> > What I really need is to run the command system("AcroRd32.exe "), and  
> > not the system(“del _._”). so Maybe, I’ll try to have it called by the  
> > javascript.
> 
> I believe it is not possible to do it from javascript. I understand  
> that _you_ want to run acrord32 and not something unpleasant, but the  
> point is that if it were possible for you to do this then someone else  
> _would_ so something unpleasant.
> 
> Why do you want to run acrord32 on the users pc?
> 
> Colin

Hi Colin,

I want to run accrobat, because I need to open an XDP file in order to  
merge it with a pdf. The only way that I see is to open the xdp on  
accrobat thus it’ll bring up the corresponding pdf with all it’s fields  
populated, and then I just need to save it.

Regards

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/6 "2010-07-17T22:10:06Z")

</div>

2010/7/17 Mamadou Touré [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > > What I really need is to run the command system("AcroRd32.exe "), and  
> > > Colin
> 
> Hi Colin,
> 
> I want to run accrobat, because I need to open an XDP file in order to  
> merge it with a pdf. The only way that I see is to open the xdp on  
> accrobat thus it’ll bring up the corresponding pdf with all it’s fields  
> populated, and then I just need to save it.

But why do you want to do it on the users PC? You say that ‘I’ need  
to do that, not ‘the user’ needs to do that. Generally anything that  
‘I’ need to do must be run on the server. Why can you not do the  
manipulation on the server? Not that I know about XDP at all.

Colin

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/7 "2010-07-17T23:13:09Z")

</div>

Colin L. wrote:

> But why do you want to do it on the users PC? You say that ‘I’ need  
> to do that, not ‘the user’ needs to do that. Generally anything that  
> ‘I’ need to do must be run on the server. Why can you not do the  
> manipulation on the server? Not that I know about XDP at all.
> 
> Colin  
> I would say that “the user needs”. The server can not do that because  
> there is no accrobat installed in the server.

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 19, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/8 "2010-07-19T18:25:10Z")

</div>

Mamadou TourÃ© wrote:

> Colin L. wrote:
> 
> > But why do you want to do it on the users PC? You say that ‘I’ need  
> > to do that, not ‘the user’ needs to do that. Generally anything that  
> > ‘I’ need to do must be run on the server. Why can you not do the  
> > manipulation on the server? Not that I know about XDP at all.
> > 
> > Colin  
> > I would say that “the user needs”. The server can not do that because  
> > there is no accrobat installed in the server.

Then you need to install Acrobat (or some other XDP processing tool) on  
the server, so that you can serve a PDF file to the user, or you need to  
find out if there’s an XDP browser plugin and tell your users to install  
it. You are going about this entirely the wrong way.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 19, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726/9 "2010-07-19T20:01:59Z")

</div>

Marnen Laibow-Koser wrote:

> Mamadou TourÃ© wrote:
> 
> > Colin L. wrote:
> > 
> > > But why do you want to do it on the users PC? You say that ‘I’ need  
> > > to do that, not ‘the user’ needs to do that. Generally anything that  
> > > ‘I’ need to do must be run on the server. Why can you not do the  
> > > manipulation on the server? Not that I know about XDP at all.
> > > 
> > > Colin  
> > > I would say that “the user needs”. The server can not do that because  
> > > there is no accrobat installed in the server.
> 
> Then you need to install Acrobat (or some other XDP processing tool) on  
> the server, so that you can serve a PDF file to the user, or you need to  
> find out if there’s an XDP browser plugin and tell your users to install  
> it. You are going about this entirely the wrong way.

…or serve the XDP file with the appropriate MIME type that the browser  
knows to tell Acrobat to open it. That would appear to be  
application/vnd.adobe.xdp+xml .

> ## Best,
> 
> Marnen Laibow-Koser  
> [http://www.marnen.org](http://www.marnen.org)  
> removed\_email\_address@domain.invalid
