I need to be able to create a way to view/modify a PDF file (Adobe form) inside an OpenEdge application. Has anyone done this that might have suggestions on how to start?
I think this might be of general interest. I know I've faced this problem before, and I'm sure many others have as well. Is there any possibility that you might zip up the code and post it here?
Is there good help documentation on this control? As you mentioned, the language in your example is in Portugese which I can't read. And I can't make sense of how I get the control to actually open up a file. I looked online and can't find any information on how to use this control.
Ok, found it. Weird, not sure why I couldn't find it before.
Now I have the pdf file in the viewer now and can make changes, etc. However, I want to restrict them from saving changes within the Adobe controls themselves. I want to build a "save" button and then put certain rules around how the file will be saved etc. This will prevent them from accidentally overwriting a template that they bring up and make changes too (we'd want to have them save it to a new file name).
Is there a way to get the save button to go away within the adobe viewer?
I have not seen your code example, but I am trying to fix a problem in Adobe PDF viewer. I have the viewer embedded in a OpenEdge window. Every time I load another document into the viewer, the viewer takes focus. I tried many things to apply focus back to a widget in the calling procedure (usually a browse widget), but it just doesn't seem to work. Any ideas?
Hey, that's great! It works! It doesn't prevent them from hitting F8 and bringing it back but will probably stop most people from saving that way. Thanks again!
Does anyone know how to use the reader to save the file in code (not via the save button Adobe provides)? I tried to use the DocSave function but can't figure out how to write it with the DDEExecute it talks about in the Adobe help.
You can add a OCX of Adobe
You can add a OCX of Adobe (I use the Adobe Reader OCX).
If you need i can send you a example.
Baltazar
Example with adobe reader ocx
Hi Baltazar, i would like to see your example if it's possible. Thanks.
etekos1@yahoo.com.mx
Example
I will send the example to your e-mail.
Me too.
I think this might be of general interest. I know I've faced this problem before, and I'm sure many others have as well. Is there any possibility that you might zip up the code and post it here?
Thanks!
Program
The messages are in Portuguese.
Thanks
Thanks a lot¡¡¡¡¡¡¡¡
Help documentation
Is there good help documentation on this control? As you mentioned, the language in your example is in Portugese which I can't read. And I can't make sense of how I get the control to actually open up a file. I looked online and can't find any information on how to use this control.
Thanks!
Thanks for this!
Code
The code is in the button
if pathtofile <> "" then do:
pdf:hidden = false.
ChPdf:AcroPdf:src = pathtofile
end.
else pdf:hidden = true.
Code example
Interesting. That code is not in the file I got when I unzipped your code. Maybe some of it didn't come through?
Code
The code is in "btnanexo". The label of the button is "...".
Found it
Ok, found it. Weird, not sure why I couldn't find it before.
Now I have the pdf file in the viewer now and can make changes, etc. However, I want to restrict them from saving changes within the Adobe controls themselves. I want to build a "save" button and then put certain rules around how the file will be saved etc. This will prevent them from accidentally overwriting a template that they bring up and make changes too (we'd want to have them save it to a new file name).
Is there a way to get the save button to go away within the adobe viewer?
Save Button
You can rigth-click the Adobe Controls and hide the option "Archive". (In portuguese "Arquivo").
You can search in the web if there are a programatically way to do this.
Whis this option, you have to do in all computers!!
I think there is a better solution.
Baltazar
PDF Viewer takes focus
Hi there,
I have not seen your code example, but I am trying to fix a problem in Adobe PDF viewer. I have the viewer embedded in a OpenEdge window. Every time I load another document into the viewer, the viewer takes focus. I tried many things to apply focus back to a widget in the calling procedure (usually a browse widget), but it just doesn't seem to work. Any ideas?
Kind regards - Arie
Disable toolbar
Hi, you can disable the toolbar using this:
ChPdf:AcroPdf:setShowToolbar("false").
But how do i use the other toolbar buttons, use the reference to create your own buttons:
http://www.adobe.com/devnet/acrobat/pdfs/iac_api_reference.pdf
Page 106.
Enjoy.
That worked!
Hey, that's great! It works! It doesn't prevent them from hitting F8 and bringing it back but will probably stop most people from saving that way. Thanks again!
Can't save the file
Does anyone know how to use the reader to save the file in code (not via the save button Adobe provides)? I tried to use the DocSave function but can't figure out how to write it with the DDEExecute it talks about in the Adobe help.