I have a simple Win32 app writen in C, in which I would like to open PDFs. I know I can compile and link to Poppler library, but is there a way to use Acrobat Reader? Kind of like what browsers do, if you have Reader installed, they are automatically able to display PDF in a window though some plugin interface. The problem is, I never used a plugin, not wrote such an interface. How to? Is it also possible to install Reader afterward and somehow make the app aware of its presence?
I would also like to control, say, the zoom. And what the PDF could be in memory, as well.
Edit:
I just found this [1]:
"If you have installed Adobe Reader, you can add a COM reference to the PDf viewer ActiveX control in VisualStudio and use it inside a WindowsFormsHost control."
but I don't understand what does it says: how do I create "COM reference" and use "WindowsFormsHost" in plain Win32 C?
[1] PDF Libraries to Display a PDF document in WPF
On windows if you type mypdf.pdf and hit return in a Command Prompt it opens the pdf in the associated application (in most cases Adobe Reader). So in c# I start a new process with the pdf as the file to run.
You should be able to do something similar in c without bothering with plugins.
In addition to what Nifle said, if instead of running it as a separate application you want to run Acrobat Reader as a plugin within your application's window (as for example IE runs it within IE's window), Adobe Acrobat Reader download page says,
An ActiveX control for Internet Explorer and a plug-in for Netscape Navigator are included and automatically installed in the browser of your choice.
The plug-in technology is probably the technology called ActiveX.
Related
I would like to embed a modern WebView2 component (Edge Chromium Browser Control) inside an old-style VBA UserForm.
I surmise that I would need the following installed on the system:
Edge Chromium Broswer
Webview2 SDK
While I have the Edge Chromium Browser installed I am unsure how to install the Webview2 SDK outside of the context of a specific Visual Studio Project. To use it in a VBA solution it needs to reference some sort of global system-wide file?
Then, apparently the type library which contains the functionality we need to embed the Edge browser is Windows.Web.winmd. I presume I would need to "reference" that in some way but I am not sure how...
The closest thing I have found to answering this question is the following set of dlls:
http://vbrichclient.com/#/en/Downloads.htm
I'm using Texify plugin for Pycharm to write latex. After running, I have to go manually to "out" folder and open it with Adobe. How to make Pycharm do that automatically?
I see this option but I don't know how to fill it up.
Adobe locking the pdf file is a well-known issue, and so Adobe is not supported by TeXiFy. Depending on which OS you are on, the following pdf viewers are supported (links to TeXiFy wiki pages):
All: internal PDF viewer, via the PDF viewer plugin.
Windows: SumatraPDF
Linux: Evince, Okular, and Zathura
Mac: Skim
where supported means that the pdf automatically opens on compilation and that forward and backward search should work, the latter possibly after some configuration.
When you want to use some other pdf viewer, make sure that it does not lock the pdf file (so Adobe is not possible) and enter the command you would use to open the viewer from the command line in the Select custom pdf viewer command field. This should work on (at least) most Linux and Mac distributions.
Edit
As of TeXiFy b0.7.4 the internal PDF viewer is supported through the PDF viewer plugin.
Alternatively there is a PDF Plugin, to open it within PyCharm, which you can install from the store.
https://plugins.jetbrains.com/plugin/14494-pdf-viewer
There is a PDF application which have listbox,textbox,checkbox etc ,i need to automate using HP-UFT ,does it need any plugin ,since when i tried a piece of code it a run time error that "active x is unable to create the object "even though active x addin is checked on or off
APTT - Adobe Pdf Test Toolkit
Like any other objects that are added in your Object repository, you would wish that there was a plug-in for adobe too. Here is the solution to that
Download ADOBE APTT plugin.
If you install ADOBE APTT plugin, QTP starts identifying the objects in PDF like any other object.
This can be downloaded from: http://labs.adobe.com/technologies/aptt/
We have a native, stand alone Win32 application that we use to generate .PDF files. It is command line driven to take one of our data files in and generate a PDF file. It works in conjunction with a print driver that is installed on the computer.
I know there are libraries for generating PDF files in .NET that we can use in Azure, however, there is specific type layout being carried out in our App that we must support, and that logic is not yet on the server side. This is a short term cheat, before we port (or rewrite) our 20 year old type layout engine out of C/C++. There is alot of code here with alot of complexity.
I see that we can now run native apps in Azure (yay). However, my issue seems to be that this native application requires a print driver installed. I have not been able to find any information about installing print driver in Azure worker role.
I found this discussion: https://stackoverflow.com/questions/9125385/printing-to-pdf-from-azure-worker-role. The end result of this is to use a PDF library on Azure, which is not something that will work for us.
Also, I am aware that it is not the best use of a server to fire up a process to generate a PDF file everytime somebody wants to preview their data file in our web site. We are planning on cheating by showing the user the PDF, when they want to preview our proprietary data format in a browser. This is Phase I of a project, and rewriting our 20 year old type layout engine in C# is going to take alot longer to accomplish, and we are talking about this (admitted hack) as a short term (in the bigger sense of things) measure.
How do I install a Print Driver in Windows Azure worker role? Is it possible? Are there any other options?
Many Thanks.
If you can do a command line, silent install of the Amyuni software that yms mentioned then you could run that as part of a startup task on your worker role, probably with elevated permissions. People use startup tasks to do all sorts of things and many of them have written blog posts about it or answer questions about them here on SO, but a good place to start would be the official documentation.
This may help: Amyuni PDF Converter is a PDF printer driver with an API exposed as a COM interface and as a net. assembly that allows you to silently install and uninstall the driver programmatically. This can be done by using the methods PDFDriverInit and DriverEnd from your application.
Once your application installs the driver, you can print to PDF using a memory stream as destination and upload it to a Microsoft Azure Blob Storage.
There are 2 ways of installing Amyuni PDF Converter:
1- Using the installation program provided with the package.
2- Copying the dll files to their corresponding folders and then calling the method DriverInit.
The complete process is explained here:
Using the Developer Version of the Amyuni Document Converter
About your specific scenario, if you have an application that uses Amyuni PDF Converter, then there is indeed a printer driver that should be installed with it. Your application could be installing the driver every time it is launched and removing it when it is closed, or it could be installing it only during the installation of your program.
If you do not have the source code of this application but you still have the license information of the library provided by Amyuni, you could try building a small application or batch script that just takes care of the installation process. You can contact Amyuni support for a link to the latest build of the version you are using.
You mentioned that you are using Windows Azure VM, so I am assuming that you have administrative rights on the virtual system and that you can connect to it using remote desktop and run any kind of applications.
Usual disclaimer applies
I'm searching for a good PDF viewer for Joomla, the problem is when there is a module in an article all the PDF viewers I tried so far show: {loadposition myposition} in place of that module.
Does anybody know a PDF viewer that will show the module.
I would also like it to have a header and footer option.
Thx.
I suspect that your extensions 'might' not be the sole source of your troubles.
Have you installed "Modules Anywhere" from nonumber.nl?
I recommend you try that first before assuming that the problem lies in your extensions.
Here is the appropriate link: http://www.nonumber.nl/extensions/modulesanywhere
Install it, and make sure the editor plugin is also installed and enabled (Modules Anywhere may perform these steps upon installation), then open up the content item you wish to inject your module into and use the module selection tool provided to you by the editor plugin.
After you perform this test, you can more reliably assume that your PDF related modules are the culprits.
Good luck!