We have pdf templates that get data from a data source and write out a file with data in respective fields. It uses PeopleSoft delivered functionality to perform this action. What is interesting is, we open the PDF file in Chrome, Safari, IE and other browsers, a check appears (shown below) in the checkboxes. But when we open the same file, from the same run in a Firefox browser window, they appear as 4s (image below) instead of a check in the checkbox.
Does anyone have an idea if this is a known issue? Any help is appreciated.
Related
I'm generating multi-page PDF reports using pentext, which uses Apache FOP. It all works fine, but when I open the resulting PDF (in macOS Preview), it always opens on the last page rather than the first. This makes me suspect there is some concept of "current page" that is saved as part of the document, which also means there should be some way of manipulating that so that reports open on the first page instead. Can anyone tell me how to set that using FOP?
Alternatively, is there some way of setting what page a PDF document opens on using some other tool that I can use to post-process it?
It is possible to save the content displayed on a webbrowser control in a Windows application, giving that there's no access to the source code? The webpage is downloaded in a proprietary format from a HTTP server, so sniffing the HTTP traffic doesn't help too much (it's a base64-encoded data which decoded gives a binary file without any recogniseable headers).
I think a good solution will be to load the application in Wine, giving the open-source nature of it, and trying to extract the data somehow from the Gecko HTML viewer, but I don't have any idea how to start...
Any better solutions than recompiling Wine to display the content of displaying webpages? I hope for some magic tool to display HTML source from a webbrowser control, but any starting point will be appreciated.
Thank you.
Ok, I successfully did this with AutoIt, with just three lines of code. Just attach to the IE Control and call IEPropertyGet on it. Sample code:
#include <IE.au3>
$oIE = _IEAttach("window_title", "embedded");
ConsoleWrite(_IEPropertyGet($oIE, "outerhtml"));
Now in AutoIt's console will appear the source code of the displayed page in embedded webbrowser control.
I am using HTML and CSS, and willing to use a very simple JavaScript code if necessary.
I uploaded ResumeWord.doc and ResumePDF.pdf to the FTP. I created links for "View" "Download" and "Print" for each. ResumeWord.doc only seems to give me a pop-up with options to Open or Save instead of opening in the browser, while I was able to open ResumePDF.pdf in the browser but not create a clickable link to download it without viewing. I have tried the HTML target_blank and JavaScript window.open for the "View", unsuccessfully. I am self-taught and an amatuer.
How can I make the "View" link open ResumeWord.pdf in the browser without a pop-up?
How can I get ResumePDF.pdf to download when the user clicks "Download"?
Without some help, the browser won't assume that a user has Microsoft Word installed on their computer. That is why you only get the option to save it, rather than it opening.
The PDF, however, is something that can be viewed in-browser, and the browser can check if the right files are installed to make this happen. So if they are, the browser goes ahead and opens the file.
As for forcing the browser to open a word file, see this SO question.
And as for forcing a download of a PDF, see this SO question. It may not be possible, in your case, as the solution involves sending different server-side headers.
I am creating a Firefox extension that is somewhat similar to Firebug. There is a panel (or vbox) at the bottom of the browser that allows users to specify colors to certain Html elements. When they click the OK button, I would like these colors to get updated on the current web page.
I have my JavaScript working when I click the button (i am just throwing an alert), however when I change that JavaScript to change the css or styles of an element (by either using document.getElementById or jquery), nothing changes.
Is there something with Firefox extensions that I am missing? Any help is appreciated.
Let me know if you have any questions. Thanks
https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions#Accessing_the_document_of_a_webpage_doesn%27t_work
You want content.document.getElementById() and similarly for every other construct you use.
I have a Firefox extension and in some cases when a user navigates to a PDF I'd like to save a copy of the file. This is easy when the PDF is downloaded (as I can use nsIObserverService to get the file), but when the PDF is opened in the browser using the Adobe Reader plugin I can't see how to get the file without downloading it again. Any ideas?
The plugin or firefox seems to wrap the pdf in html that contains a single EMBED tag with the pdf. So I can get the embedded object via doc.embeds[0] but don't know if there's any available interface to do anything with that.
An alternative would be to use something like nsIObserverService to notice when a file has been retrieved for viewing - but I don't know if that's possible?
I don't want to simply get the url and re-retrieve it, as it will sometimes no longer be available, having been served from a web app.
thanks!
UPDATE: to clarify, I want my firefox extension to do this in code, not by pressing CTRL+S as a user.
If the pdf is opened using the Adobe Reader plugin you can simply click on the Save icon on the reader tool bar. That is the easiest way.
Press Ctrl+S
In the pop up window select the location to save the file and press Save.