Load a PDF and Print it Without User Seeing the PDF
I have a client who has a need to allow users via a web browser to print PDFs wihtout gaining direct access to them. Ignoring all the flaws in this logic , I am new to Flex and am having difficulty determining if this is possible. So, here are the details:
1) This is a web browser application.
2) The files reside on a server.
3) The user will view a list of available PDF files in their browser.
4) There will be a print icon next to each one.
5) When they click on the print icon we need to pull in the PDF from the server and initiate a print, all without the user seeing the PDF. So once they click the print icon the next thing they see is thier browser's print dialog box.
I have 1-4 done, I just need help with the most important one, #5.
So, can Flex (without AIR) load a PDF in without displaying it and print it?
I am using Flash Builder 4.6, if it matters.
Thanks in advance for any input.
Well, that's going to be difficult. Before everything else, a silent printing in general, is not what Browser is all about. A print dialog is thrown by the browser when a user selects a print option. Same thing if an application is trying to print using built into it conventional methods of printing - you get Print dialog. It gets even harder if you want to print PDF files silently. You will need to make sure that a file is available to print in case it's generated on the fly. The following code will print your PDF without dialogs to a selected (var printer) printer:
var WshShell = new ActiveXObject("WScript.Shell");
var fs = new ActiveXObject("Scripting.FileSystemObject");
var fi = "AcroRd32.exe /N /T " + '"c:\\temp\\' + "filename" + '" ' + printer;
WshShell.Run(fi, 0, false);
As you notice, the file is on the local system. Or you can try printing over the network.
This code will be a part of a JS function in your html wrapper. You will call this function from Flex using ExternalInterface.
AcroRd32.exe is an Adobe free PDF reader. I would suggest starting from the end - have a file on the local system and working on everything esle.
HTH
Similar Messages
-
I have hidden pages in the PDF form I'm using (but didn't create). How can I see and print all the pages at once without clicking on the "next page" button. In the initial view, there are four pages, but if I click the "next page" button, there are a total of 12 pages in this document. This is three budget years, each year being 4 pages long.
You're most likely dealing with a dynamic XFA form created in LiveCycle Designer. You can open it, click the button, and save it, and it will most likely be 12 pages when next opened, but it depends on how the form is set up. The ability to make edits to an XFA form in Acrobat is very limited, especially for dynamic forms, so things like flattening aren't possible.
If it's not an XFA form, you'd still need to click the button at least once and save. To say for sure what's possible, I'd need to see the document. Can you post it somewhere? -
heeeelp!
Look at page 36 of the iPhone iOS 5.1 User Guide
If iPhone is extremely low on power, the display may be blank for up to two minutes after connecting power before one of the low-battery images appears. -
Sharing a PDF without users seeing who else has access?
Was wondering if there was a way to sharing a PDF without users seeing who else has access?
Sorry, not using Acrobat.com. It is possible using the Adobe Acrobat.
-
I received a 1st Gen IPad from a supplier as a gift to promote their products. They used their Apple account to load the apps. I am not able to load my own apps because their apple user is the one that pops up. How can I change it to mine?
Set it up as new device, explained in this article, without using the backup afterwards:
How to back up your data and set up as a new device -
How do I permanently delete music files from itunes AND my computer (without going to the folder to delete each item)? It's a windows system. I've tried 'reset all dialogue warnings' as I've been told to do but no luck. Files are still in Itunes folders. I would really appreciate help!
Solved! Music was in Itunes folder but not in Media folder within that. It doesn't seem like a very user friendly system so far!
-
Can i share music and photos between two users on the same machine?
How can I share my music and photos between two users on the same machine?
Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly Thanks anyway!
-
Type the name and password of a user in the "(null)" group to allow this.
To connect to wifi while in the recovery partition, I'm asked to authenticate the wlan's certificate, and in order to do that I'm asked for "the name and password of a user in the "(null)" group" to make changes to the Certificate Trust Settings. Anyone know what or which user may this be?
I'm not able to pass from the initial apple screen when I boot, so I wanted to repair or reinstall Lion, but in order to do that I need to connet to the WLAN to download it.Hi, I called Apple Support this day, and the answer is that enterprise WPA wireless is NOT supported by Lion Internet Recovery.
You can find the supported configurations and protocols on Apple site:
http://support.apple.com/kb/HT4718?viewlocale=en_US -
Please bring to downgrade to iOS 6.1.3!
iOS 7 seems like the macintosh ago ... the beginning of the end!
Sorry, but then provides for all iPhone lovers, the classic design and unlimited use without fault love the previous version available.
It's super tiring to work with iOS 7!Submit your feedback to Apple here:
http://www.apple.com/feedback -
How can I share applications and softwares with different users of the same computer?
First question: How can I share applications and softwares with different users of the same computer?
Second : Can I use 2 different I cloud accounts to synt 2 iphones with one computer?Applications installed on the admin account are available to all user accounts unless Parental Controls are enabled.
Yes. Separate user accounts, help here > How to use multiple iPods, iPads, or iPhones with one computer -
I use aperture 3 since a long time. Using slit viewer, noe the bigger image become bigger then the given space and shifted to the right, so that I can't see the complete picture anymore. And I also don't see the last few picture in the strip below. How can I splve this problem?
This lloks like your preferences file might have become corrupted.
you probably have a problem with corrupted user preferences.
Remove the Preferences: Remove the Aperture's user preferences from the User Library as described here:
Aperture 3: Troubleshooting Basics http://support.apple.com/kb/HT3805
Note:Your User Library is hidden by default in 10.7.x or later - to open it in a Finder window use the "Go" menu from the Finder's main menu bar.
Quit Aperture, if it is running. Log off and on again.
Open the user library by using the Finder's "Go > Go to Folder" menu and hold down the options-key, until "Library" appears in the drop down menu. Select it.
In the widow that will open, scroll down to "Preferences"
From the "Preferences" folder remove "com.apple.Aperture.plist".
Then try to launch Aperture again.
But deleting the "Preferences" file will cause Aperture to forget the preferences settings. Be prepared to have to reset all options you set using the Aperture Preferences panel.
Regards
Léonie -
Is there any way to darken the gridlines in iCal? I'm using it on a Macbook with Lion and find it difficult to see the gridlines on the iCal display.
''Problem:'' For whatever reason, NoScript is stopping Runescape Community Toolbar from working properly which freezes your first Firefox window.
''Fix:'' Uninstall the toolbar. Disable NoScript. Install the toolbar. Add your RS account to it and make sure it works, then Enable NoScript again.
EDIT: Posted a fix earlier that was wrong. Corrected to the right one, sorry ^_^ Answer was on Runescape Forums. -
This didn't happen until Firefox 11.0. The scroll bar is there, with the up and down arrows, but everything in-between is black, and you can no longer see the mini-bar within to move the page.
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
I added 0AMOUNT in generic data source and in rsa3 i am seeing the data ..b
i added 0AMOUNT in generic data source and in rsa3 i am seeing the data ..but i am not seeing any data in target table..
what would be the causeHi,
I guess you mean the target table in BW, correct?
First replicate your DSource in BW
Open your TRules. In tab Transfer structure/Datasource locate your field in the right pane (should be greyed, not blue); move it from to the left (to the transfer structure); reactivate and reload.
You should now see the field in your PSA table.
hope this helps...
Olivier. -
Please, I need help. I´ve just downloaded your adobe creative cloud and now I CAN´T SEE THE DESKK ON MY PC!!!!!
Creative Cloud chat support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html
Maybe you are looking for
-
New Hard Drive still have Question Mark Folder
So I first got the 'Question Mark Folder' and had to keep running Safe Boot Mode to use computer. Finally got around to replacing the Hard Drive, but this Question Mark Folder still comes up trying to turn the computer on and now trying to setup the
-
Problem with Protected Excel sheets through OLE
Hi Friends We are facing the problem with the protected sheets in excel, when we are accessing worksheets via SAP. We can insert the values in the protected sheet and we can do other manupalations, but when we are trying to do the autofit for the pro
-
Steps for the IDOC TO FILE with ACKNOWLEDGMENT
Hello experts, Kindly give me the step by step procedure for the following scenario. My scenario is an IDOC( any idoc) for R/3 is coming to XI and send to FTP as XML file with out any modifications, and ftp have to send an response (acknowledgment
-
Dunning for head office/branch account
Hi All, Our client is maintaining the customers with relationship of head office and branch account. Ex: Customer 1 has been created as Head office account and the same customer maintained as branch office account. Head office customers are maintain
-
hello, I have a problem because I developed a very simple file and the same is weighing nearly 200mb. Has no image, type transformed into object and the drawing size is 30x60mm sources very small. I have had these problems with other files.