Passing a PDF as a parameter

  • Thread starter Thread starter Luft
  • Start date Start date
L

Luft

Is it possible to pass a PDF as a parameter to a server via remoting?
If so is there a resource I can use to learn how?

Thank you.
 
You can upload a file, but to pass a PDF file, it would need to be able to
be represented as an object, otherwise you could pass a file path to where
the PDF lives.

-Scott
 
Thanks Scott. The thing is that the users are now required to save
certain documents by law and once saved they are not allowed access.
So I can't upload them because the user doesn't have write access. I
thought about passing a link and having the server end pull the
document across but my supervisor doesn't like that idea.

So I was thinking that if I could somehow serialize the PDF into a
memorystream I might have a shot at sending the file to the server and
then have the server deserialize the memorystream back into a PDF.
But frankly this is beyond my current abilities and for whatever
reason my supervisor has turned down my repeated requests for
training.

So I'm desperately seeking the resources that will allow me to learn
how to do this.
 
Luft said:
Thanks Scott. The thing is that the users are now required to save
certain documents by law and once saved they are not allowed access.
So I can't upload them because the user doesn't have write access.

I am confused by this. Why do you need write access to upload a file?

-Scott
 
I guess we're thinking of two different things when we say "upload."
Maybe your thinking of upload as via an FTP server or some other
transport. I'm thinking of upload as writing a file to a share.

What management wants is to have a button on our Word 2007 ribbon.
When the user clicks it, the document that they are working on gets
converted to a PDF file and saved on our document storage server
automatically and all in one step from the user's perspective.

I'm thinking what I need to do is convert the document into a PDF and
save it on their PC. Read the file into a memorystream. Put the
contents of the memory stream into a byte array. Pass the byte array
to the document server via remoting. At the server end copy the
contents of the byte array back into a memorystream. Write the
memorystream to a file. Save the file to the proper location.

Hopefuly I'm on the right track here.
 
I'm thinking that you just need to use impersonation of an account that does
have privledges to write to your document server and then you just have the
document save in .pdf format to that location.

No?

-Scott




I guess we're thinking of two different things when we say "upload."
Maybe your thinking of upload as via an FTP server or some other
transport. I'm thinking of upload as writing a file to a share.

What management wants is to have a button on our Word 2007 ribbon.
When the user clicks it, the document that they are working on gets
converted to a PDF file and saved on our document storage server
automatically and all in one step from the user's perspective.

I'm thinking what I need to do is convert the document into a PDF and
save it on their PC. Read the file into a memorystream. Put the
contents of the memory stream into a byte array. Pass the byte array
to the document server via remoting. At the server end copy the
contents of the byte array back into a memorystream. Write the
memorystream to a file. Save the file to the proper location.

Hopefuly I'm on the right track here.
 
Luft said:
What management wants is to have a button on our Word 2007 ribbon.
When the user clicks it, the document that they are working on gets
converted to a PDF file and saved on our document storage server
automatically and all in one step from the user's perspective.

I'm thinking what I need to do is convert the document into a PDF and
save it on their PC. Read the file into a memorystream. Put the
contents of the memory stream into a byte array. Pass the byte array
to the document server via remoting. At the server end copy the
contents of the byte array back into a memorystream. Write the
memorystream to a file. Save the file to the proper location.

Hopefuly I'm on the right track here.

Something like the following would be a lot less work!

http://www.novapdf.com/kb/how-to-in...rver-as-a-shared-network-pdf-printer-102.html
 
Back
Top