Is there a way to detect if the PDF file is the original of our server, or a local copy.

Hello

We are currently generating very large PDF files in our industry that contains industrial revenue and users should always use the latest version (one located on the server - the pdf has always the same path and file name)

We already had bad experiences when users were using a file that has been saved on the desktop and was obsolete.

We want to do is only to print the PDF file from the server and disable printing when the file is on the desktop, or in any other place.

So my question is: are there at - it a way to read the path to the file when printing and disable printing or use addwatermarkfromtext if the path is not the path to the server?

I hope my question is clear and I will find a solution.

Thank you.

A script can be used to detect the location of the file, but you can't stop to print. However, you can display a warning label if it is not located at the desired location. So let's say you set a text field hidden with the warning message, called "PrintWarning". You can then use something like this as a script Will Print the file:

if (this.path!="....") { // here you need to enter the path of the file on the network drive, which you can get from the console by executing this.path
    app.alert("Error! You should not print this file from your local computer!");
    this.getField("PrintWarning").display = display.noView; // The field will be visible on the print, but not on screen
} else this.getField("PrintWarning").display = display.hidden;

PS. I'm moving your question to the Acrobat JavaScript forum, where he is best.

Tags: Acrobat

Similar Questions

  • Is there a way to detect all the keys that the user clicked in AS3?

    Hi all

    Quick question - is there a way to detect all the keys that the user clicked using the AS3 code? I have pimples on my project and I want to that they be disabled once the user has clicked on it, but I wonder if there is a function that I can write that will automatically disable all keys that the user clicked once?

    Thank you!

    Here is an example where the buttons share the same handler... try it and see if it works (I can't due to not having Flash on hand).  The only problem that I could expect it not to love the evt.currentTarget is not identifiable as a particular class type, but sometimes it can't.  If this is the case there is an easy solution.

    Btn1.addEventListener (MouseEvent.CLICK, processBtnClick);

    btn2.addEventListener (MouseEvent.CLICK, processBtnClick);

    function processBtnClick(evt:MouseEvent):void {}

    evt.currentTarget.removeEventListener (MouseEvent.CLICK, processBtnClick)

    }

    If you also want to keep track of which buttons were clicked already you can store in an array...

    var clickedButtons:Array = new Array();

    Btn1.addEventListener (MouseEvent.CLICK, processBtnClick);

    btn2.addEventListener (MouseEvent.CLICK, processBtnClick);

    function processBtnClick(evt:MouseEvent):void {}

    evt.currentTarget.removeEventListener (MouseEvent.CLICK, processBtnClick)

    clickedButtons.push (evt.currentTarget)

    }

  • is there a way to avoid that a PDF file be transmitted?

    is there a way to avoid that a PDF file be transmitted? For example, I'm a personal trainer and if I send a customer a plan via PDF file, I want to assure you that they are unable to send it to someone else. I read about how you can secure a file by creating an ID and then create the recipient to have an identifier as well, but I would like to make the process as simple as possible for my clients and not need to have create them an ID, and then send it to me. is there a better way to prevent the recipient to send back the PDF?

    Hi Jessica,.

    Thus it has no option to prevent recipients of transfer the pdf file. However you can check this blog How can I prevent someone to send a PDF file?, it might be useful.

    Kind regards

    Nicos

  • Is there a way to spell check a PDF file without converting them in Word or by paying an annual fee?

    Is there a way to spell check a PDF file without converting them in Word or by paying an annual fee?

    Not with player not because it isn't a PDF editing tool.

  • Is there a way to control indexing of PDF files

    Is there a function of Acrobat that allows you to control how a PDF is indexed by search engines?

    A customer has a specific problem: they would matches to a search on their PDF first show that the text of the body of the document, followed of matches since the notes.  Is there a way to control this in Acrobat?  Or to restrict the search results so that the body of the document and notes not at all?

    In PDF files plus it isn't even a difference between 'body' and 'reference', they are just text on a page. Anyway, no. No, except if the search engine is a special feature - everyone is different of course.

  • Is there a way to detect whether the page is in edit mode or not? [Toilet frame]

    I can't find any bean system to provide this information. If anyone knows, it would be very useful.


    It comes to Webcenter Framwork (no space). and by "edit mode", I hear when the user press Ctrl + Shift + C and the blue dotted lines appear.


    Thanks in advance

    Published by: Chris_Jo on January 25, 2012 12:16

    Suite EL will do what you want:

    #{composerContext.inEditMode}
    

    In other words, the composerContext bean is available even in a WebCenter portal application. If you take a look at the default template (pagetemplate_globe.jspx) that is created when you create a portal webcenter application. On line 16, you will see an example of the use.

    Edit: sorry... I didn't know you meant method of contribution...

    Change the mode is by pressing ctrl + shift + e
    CTRL + SHIFT + c is called contribution mode...

    I just looked at the source code of the content presenter taskflow and this is what they use to show the dotted line:

    inlineStyle="#{composerContext.subView == 'contentContribution' ? 'border:2px dashed blue' : ''}">
    

    So I guess that #{composerContext.subView == "contentContribution"} will return true if you're in input mode. This should work as well in areas such as framework.

    I hope this helps.

    Published by: Yannick Ongena on January 25, 2012 20:10

  • Is there a way to dynamically determine the SSO API vCenter server info / PowerCLI?

    Just started looking into this, but the idea is that SSO/PSC on its own virtual machine while vCenters and Web client are on separate virtual machines.

    Is it possible to see which server SSO/PSC vCenters associated to?  I want above all this information, so I can record a daily SSO/PSC situation where there problems that prevent me from logging into vCenter.

    Addedalanrenouf and LucD for attention.

    Working specifically 5.5.

    Post edited by: Chris Nakagaki

    Figured this out.

    Basically, it's this:

    ($Global: DefaultVIServer |) Get-AdvancedSetting | WHERE-object {$_Name - match "config.vpxd.sso.admin.uri"}) .value

    If you are a connected to more than one via the cmdlet Connect-VIServer vCenter, so it is going to be slightly different.

  • Is there a way I can store the value of ' render: stream "in a local variable

    As we know, rendering: stream will always flow the result to the browser. I have a requirement where I need to process the output of make the flow on the side Server and print it. So I tried using ics. ReadPage and called a siteentry/csElement, whose code < variable render: flow = "myvalriable" / >. But still, I get the result not transformed in the ics. ReadPage, call the SiteEntry. Appreciate your help in this regard.

    Very well. You might want to consider the 'code' and 'escape' on render attributes: stream - they can automatically do good javascript escape for you.

    readUrl works but consumes one thread of the app server, so use it with caution.

  • Is there a way (yet) to save a PDF file to disk using Acrobat Reader iOS iCloud

    Any suggestions on how to save a file Acrobat Reader in iCloud drive in iOS.  It doesn't seem to be one obvious solution other than emailing myself or using Dropbox. Surprising Adobe has not yet added this feature of Acrobat Reader.

    While we do not currently provide support for the economy to iCloud Drive, iOS 10 will add this feature, and if you install the public beta version of iOS 10, you can try:

    IOS 10, when the document is opened in Acrobat Reader, press the ' share' button to the right of the toolbar at the bottom. Then select "Open in... ' and then select 'Add to iCloud Drive' in the bottom row of the icons.

    It is also interesting to note that with the latest version of Acrobat Reader (even with iOS 9), if you open a file to iCloud by car (via 'more places' in the scene selector), all changes will be saved to iCloud by car.

  • Is there a way to convert Arabic/Kathy PDF files To WORD?

    Hi all

    I can't convert my files Arabic/Kathy PDF To WORD. After the conversion, fonts and words aren't in their right place.

    so I can't use the Word file.

    I appreciate your help.

    Hey Amir,

    Thank you for reporting the issue.

    Our team is studying the same thing.

    We will answer to you once it is resolved.

    Kind regards

    Girija

  • Search for "blackle". Is there a way to auto-noir the bottom of each page visited?

    I like the idea of using a black background instead of white on my devices. I'm saving the planet and my eyes. Is there a way to display all the origins of the auto-noir site? And I suppose that, by extension, the white of the text? I understand the images on the page would remain in their original colors, and that's fine. I see a blank page and I want to paint it black.

    People have experimented with modules in this direction over the years. Some who always seem to be maintained are:

    https://addons.Mozilla.org/firefox/addon/night-mode-Pro/

    https://addons.Mozilla.org/firefox/addon/aniverto/

    https://addons.Mozilla.org/firefox/addon/eyeguard/

    This allows you to switch between different color profiles and is probably a little more of "brute force":

    https://addons.Mozilla.org/firefox/addon/color-toggle/

  • External hard drive does not work. Is there another way I could solve the problem without formatting the external hard drive?

    My external hard drive works. I tried to plug and when I tried to open it, it says to format the drive until I could use it. Everything works well as when I plugged the USB icon shown on the screen. When I check the disk management, it showed that the partition of the drive is there.

    I tried to change the drive letters, but still having the same problem. I also tried to run the disk check on the command prompt and the properties of the drive, but it still can not because there is error popping up saying that the disk check cannot be performed because Windows cannot access the disk.

    Is there another way I could solve the problem without formatting the external hard drive?

    I tried the first step in troubleshooting the hard drive, but it gives a
    error in saying that "hardware changes might not have been detected.

    So I tried the second method, and when I click on the "Check now" button his
    gives an error saying that "the disk check cannot be performed because .
    Windows can not access the disk".".

    So is there any other way or option?

    Thank you

    Jason

  • Is there a way to globally disable the cache of Firefox?

    I run a computer lab with several linux PC (Ubuntu LTS 14.04 / latest version of Firefox). The users homedirectories are located on a file server central and limited by a diskquota. Unfortunately, Firefox takes an important part (if not all) of this quota with its cache. Is there a way to globally disable the cache?

    EDIT:
    Add the following lines to /etc/xul-ext/ubufox.js helped...

    Pref ("browser.cache.disk.enable", false);
    Pref ("browser.cache.disk.smart_size.enabled", false);
    Pref ("browser.cache.disk.capacity", 0);

    Add the following lines to /etc/xul-ext/ubufox.js helped...

    Pref ("browser.cache.disk.enable", false); Pref ("browser.cache.disk.smart_size.enabled", false); Pref ("browser.cache.disk.capacity", 0);

  • I bought an Apple Store Gift card by mistake instead of a gift card to iTunes. Is there a way I can swap the card?

    I bought a gift card from Apple Store by mistake - I was intending to buy an iTunes gift card. Is there a way I can exchange the Apple Store Gift card for iTunes card?

    You must ask to whom he sold.

  • The applications listed under Launchpad, is there a way I can delete the ones I don't use on my MAC Air?

    The applications listed under Launchpad, is there a way I can delete the ones I don't use on my MAC Air? I hope that I can free up space.

    Start the LaunchPad and hold the option key. The icons will start to shake and an X will appear in the upper corner of some but not all. Click the X to remove the application. Programs that have an X are only purchased/downloaded from the App Store. Integrated programs in Mac OS (like Safari) or programs you have downloaded/purchased elsewhere will not be a X. You should not delete (or move) programs such as Safari and Mail (built-in programs) because the update from Apple guess they were be on your computer in their installation location. Weird things happen if they are moved or deleted.

    Programs you don't purchase/download from the App Store can be deleted without the help of the dashboard, but you must be careful about this. Third party programs can be installed in different ways: some come in disk images and are trained in your application forms. These can be moved without danger in the trash. Some are installed using an installation program, and these require a little care to remove. In some cases, they set up items in addition to the program and require a special uninstall program, but this is not true in all cases. I always do the note of programs using a Setup program, so I can make sure I have properly uninstall.

Maybe you are looking for