I saved the datawindow in PDF format using SAVEAS method and I want to open the saved file in Acrobat reader. But in web application after save as method using Downloadfile() i'm able to open it. I think using OLEobject it is possile but i don't know how to do that. Any suggestions ?
If you just want to view the document (ie, no interaction with your PowerBuilder application) you can use the 'RUN' command.
Example:
RUN('C:\temp\mydoc.pdf')
This will open the file using whichever program is associated with .pdf files within your Windows settings.
We simply use the Internet context service to open the PDF URL:
inet l_inet
string ls_url
// set ls_url to the URL to open
GetContextService("Internet", l_inet)
l_inet.HyperlinkToURL(ls_url)
Related
I am currently using Adobe Acrobat Pro DC 2015.23 on macOS Sierra.
My goal is to create AppleScript that do such things:
Open PDF File
Save this file to pdf-x format
Close file
I create AppleScript, that do all steps, but i can't find any documentation how to choose with PDF standard to use while saving.
If I want to do this manually I do following steps:
Open PDF in Adobe Acrobat
Choose PDF Standards Menu
Click (Save as PDF/X)
Press save
The question is how to set PDF/X standard while saving.
My script
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
set theFiles to choose file with prompt "Select the files" of type {"pdf"} with multiple selections allowed
set aaRunning to is_running("Adobe Acrobat")
tell application "Adobe Acrobat"
repeat with theFile in theFiles
open theFile without dialogs
save active doc to theFile
close active doc
end repeat
if not aaRunning then
quit
end if
end tell
As you may have noted, Applescript support of Acrobat is very limited.
Just so, the following possible workflows come to my mind:
a) you can use Preflight Profiles to create PDF/X (this is also the engine if you do it manually). You can run/apply Preflight Profiles using Acrobat JavaScript, and you can run Acrobat JavaScripts using the do script Applscript command.
b) you create a Preflight Droplet which makes an according PDF/X file. You then can use Applescript to open the document (file) in that droplet.
c) you use System Events to control the user interface elements of Acrobat. In other words, you do what you would do manually, but using System Events. You may want to use an utility, such as UI Browser to find the ways to address the various dialog elements.
Am currently working on a web application which receives the encoded text from the web service and am decoding & saving as a PDF file. Once the user clicks for the details then I am supposed to display the PDF file in the web browser.
What is the best practice to display the PDF file in the browser? Am using VB.Net 2003
All you need to do is set the link to point to your pdf file. And if the user has any PDF reader installed, it will be opened using that reader.
The name you Want to Show as Link
EDIT:
The other way, if you dont want to display as link and directly open the file, is to set the correct MIME type in the headers, so that the browsers can detect it as PDF file instead of HTML file.
Response.AddHeader("content-disposition","inline;filename=YourPdfFileName.pdf")
Response.End
I was wondering if it is possible to open a pdf file (located on a web server) in a web browser, edit it and then save it with the changes. Basically what I need is to open, edit and save a certificate protected pdf file in my web browser, without ever having to download a copy to my desktop. The pdf file contains textfields that needs to be filled out with text before saving the changes.
I know that it is possible to view pdf files in a browser, but im unsure if it is possible to edit it when it is protected by a certificate.
What you are asking can be performed in the following methods: First which is the simplest way is to use Adobe Forms server. If you would like to use your own PDF, you will need to extend reader extensions display the form in a frame and perform cross scripting to tell the form to post itself to the server. Note: read Adobe Reader Extension licensing extending reader extension has restriction on usage.
Obviously you can enable reader extension allow user to download edit and upload the file to your server.
Certified forms means you cannot change the form structure but you can fill the form and save it (if it is reader extension enabled)
I am working on silverlight application and I want to save my file in a particular folder through savefile dialog box. But I am not able to save it.
And also I want to open it, let's say through open - dialog box.
How can I do it?
Thanks..
You can open/save files using the open/save file dialogs even outside the isolated storage for the application. Search "silverlight savefiledialog" and you'll find many examples.
I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File Explorer?
Do I grab an argsc/argsv variable in my Application.Load() method or is it something else?
Try this article but short answer is My.Application.CommandLineArgs