Controlling OCG display properties

I am trying to automate the set up of my layers (OCG's) in Acrobat.
Apparently, according to the JavaScript Reference (and Thom Parkers tutorial - http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/create_use_layers/)
there is no way to control the View/Print settings of the OCG layer via JavaScript.
What I want to do, is set one OCG, to print only and the other to view only via JavaScript - but there isn't a documented way to do this. Apparently you can only do it the layer's properties window.
Does anyone know of a workaround to setting this property?
I am working in a 'Trusted Environment' and using app level JavaScripts to set this.
I suppose, I could put a script in the WillPrint and DidPrint document actions to toggle the state of my layers before and after printing - but I thought that actually setting the layer properties would be 'safer' and more reliable.
Any thoughts or suggestions would be appreciated.
-Andrew

UPDATE: Okay well so it turns out I can add a Watermark to a file - and in doing this I can set those properties.
However, even though the book says that a watermark is an OCG - it does not show up in the layers tool...?
It does show up in the OCG array when you ask for this.getOCGs()....
so it is some kind of special OCG - or I just don't understand layers well enough.
Anyways, this helps. Though after you add a watermark there is really no way to control, except to remove it or interact with it through the limited OCG object properties for it.
anyways - it is progress.

Similar Messages

  • Controlling the display of the help (?) button

    Has anyone had any experience with controlling the display and linking of the help button? I have two questions in particular.
    First, how do I force a channel to not display the help link (the question mark button)? I have several channels that do not have the helpURL property defined, but the button still shows up?
    Second, where are the links/image elements defined for the help/edit/minimize buttons? the leafWrapper.jsp pulls the hashtable out of the HttpRequest, and that hashtable is being used by providerCommands.jsp:
    Hashtable commands = (Hashtable)request.getAttribute("provider_cmds");
    Any idea where this is being set?
    Thanks for the help ;-)
    Matt

    I've got a very similar situation. I'd like to tie a channel to a particular help file (on the same host that the channel is served by). I log in using the amAdmin account (for some reason I have to put a capital A for the Admin part, but that's another issue), select my Organization, show roles, click on the appropriate role, show Services, click the link after Desktop, click Channel and Container Management, then Edit the URLScraperProvider channel. I've filled in the values for title, description, url, and width. The remaining properties are apparently inherited from the provider, and include urlScraperRulesetID (default_ruleset), fontFace1 (Sans-serif), productName (Sun ONE Portal Server), cookiesToForwardAll (checked), inputEncoding (iso-8859-1), cookiesToForwardList (I haven't changed anything here), and timeout (100).
    I don't see helpURL anywhere in the properties associated with my channel, however, there definitely is a help button on the channel, and it goes to some generic Sun ONE documentation on URLScraper channels.
    When I attempt to add a string helpURL property (leaving the value blank, or setting the value to "", or point it at the URL the points to my help file), and submit the form, I get an error message indicating "A property with the same name already exists."
    So, what am I doing wrong? Is this the right place to be setting the helpURL? If not, where should I do this?

  • How to change slider control digital display precision from program

    I want to change slider control digital display precision from my Labview 2013 program. I can not find property that changes slider digital display format. 
    Solved!
    Go to Solution.

    rt clk the digital display>create>property node>format string
    you could also do the slide scale, if needed...
    from the front panel:rt clk properties>goto display format tab>goto drop down list and pick "digital display 0" and format

  • FW8 Slider controls missing on properties box

    The slide controls in the properties panel for such things as
    text size, transparency, grain, edge size etc. are suddenly
    missing. When I click where they should be, the screen goes blank
    and I have to press the escape key to return to fireworks.
    Does anyone know why this might be happening? I uninstalled
    FW8 and re-installed it. I restarted the computer completely, tried
    turning off all other running programs, reducing the color set to
    16 bit.... Nada.
    I DID recently change from a CRT to an LCD display
    (widescreen) but do not know if the missing elements happened at
    that point or not.
    Any suggestions would be greatly appreciated. I can make
    changes to the values by typing them in, but it is pretty tedious.

    I notice that the javascript files got uploaded by NetFinder as binary files and got the ".bin" suffix appended to them. I bet that's the problem...they should have been uploaded as text files.
    NetFinder says it uses the file mappings in "Internet Config" to determine how a file gets uploaded. Do you know where those mappings are in OSX (I don't see a system preference called "Internet Config" anymore).
    Mike

  • HP LaserJet Enterprise 500 color MFP M575 control panel display

    HP LaserJet 500 color MFP M575  have no Display. and is not anymore possible access any function. What is the problem behind that ?How can we solve this issue ? is it the problem with the control panel display or the logic board ? there is no dim memmory instaled in the system . 

    Good day,
    To get your issue more exposure, I would suggest posting it in the commercial forums since your product is a commercial product. You can do this at Commercial Forums.
    Enjoy your day!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to display properties of dimension on the input form and report in bpc

    Dear Expert,
    Please tell me how to display properties of dimension on the input form and report in bpc. I can only display dimension number.
    thanks so much
    hungth

    Hi Hungh,
    If your are using BPC 10 with EPM add in client, you can use the function:
    EPMDimensionProperty ()
    This function retrieves the properties of a specified dimension in a specified cell range.
    Thanks, Safa

  • HP LaserJet M1120n Multifunction Printer, control panel display

    Hi,
    Yesterday here was an electrisity cut. After that all devices worked normally, except the printer. Control panel display of the printer was out of function and control panel buttons  didn't work.
    I turned  the printer off and waited some time. After that I tried to restart the printer. I heard that the printer started, but the display didn't work though, even I waited couple of hours . How could I solve this problem and can you help me?
    BR Vesa

    Hi @Vesa57 ,
    I see that the display isn't working on the printer since you had a power outage. I will certainly do my best to help you.
    Can you still print to the printer?
    Make sure there is no damage on the power cord and that it is connected directly to a wall outlet.
    The printer shouldn't be exposed to any electric or magnetic field.
    Try another power cord, you can use a monitor power cord to test it. Just to rule that out.
    I would do a hard reset to see if that will resolve the issue.
    Leave the printer on and unplug the power cable from the printer and wall outlet for 30-60 seconds.
    Then reconnect the power cable to the printer and wall outlet rather than a surge protector.
    This ensures the printer is receiving full power and may help this situation.
    Try another wall outlet in another room, on another breaker. Just to make sure that isn't causing the issue.
    Please call our technical support at 800-474-6836 if the issue continues. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Can't change displayed properties in resource renderer

    Hello everybody!
    I'm trying to do display a very simple list of filenames in a KM navigation iView. I've assigned a layout set, which references a collection renderer and a resource renderer. In the resource renderer, "Visible Properties" is set to rnd:displayname(contentlink).
    But still I get a list with filename, file size and timestamp. No matter what I put in the "Visible Properties" field, the same thing is displayed.
    I've verified that the layout set references the correct resource renderer by changing other attributes ("Command Display", for instance), and these changes do have an effect.
    Any ideas what might be the problem here?
    One more thing. This iView is a dynamic navigation iView. How can I make the documents open in the content area of the portal instead of in a new window?
    Any help is very much appreciated.
    -martin

    Hi Martin,
    seems like you have selected a collection renderer for "structured output", like the grid or tree collection renderer. In this case the collection renderer is the one who is responsible of the properties displayed.
    So what you have to do is edit the parameter "Displayed Properties" of your collection renderer with the properties you want to display.
    Check this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=28751">link</a> for more info about "unstructured vs. structure coll. renderers".
    Hope this helps,
    Robert
    PS: The iView Property "Launch in New Window" should be set to "Display in Portal Content Area", in order have the iView displayed as you wish.

  • How to set up display properties for a crosstab is CSS?

    I am woundring how to setup css class and code like in this tutorial.
    myalerting.css ?
    Set up display properties for a crosstab: Design Studio 1.2 - YouTube.
    Design Studio 1.2: Set up display properties for a crosstab
    if you have sample file please share I am sure other can be befits from as well.
    I would like to use color display on numbers or icons in seperate column if the value in certain range  or a value is below or avove business needs.
    Thanks.

    Kevin,
    I could not get this to work on my installation; perhaps you can review and "run with it" or someone better with CSS can assist.
    The gist of it is there is a class .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background to define the status symbol for the alerts
    Based on your Exceptions in the BEx query, Good 1 is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background
    Good 2 is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert3Background
    etc... Bad 3 (red symbol) is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert9Background
    I tried the following custom CSS on the crosstab, note using IE (which now we can no longer use until Microsoft patches)
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlternating{
    background-color:#F9F9F9 !important;
    myAlerting.sapzencrosstab-DataCellDefault{
    background-color:#FFFFFF !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background
    color:rgba(0,0,0,0.0);
    background-image: url('/aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_1.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert2Background
    color:rgba(0,0,0,0.0);
    background-image: url('/aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_2.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert3Background
    color:rgba(0,0,0,0.0);
    background-image:url('green.png');
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert9StatusSymbol
    color:rgba(0,0,0,0.0);
    background-image: url('aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_9.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    I didn't want to hold you up and for sure I hope there is someone in the community who could help.  I'll try again when we can use IE

  • Cannot set resolution with gnome-display-properties

    Hey all!
    After full system update my external display does not get detected/recognized properly by gnome-display-properties
    Though before upgrade it worked just fine!
    Tried to downgrade hal and xorg-server but without any success.
    Any ideas how to fix?
    Thanks!

    I have the same problem. I do, like You, own a ASUS P4S8X motherboard and a MSI (Ti4800SE-VTD8X(MS-8900))videocard.
    Because it was a brand new system i installed everything from scratch, so installed the MSI drivers for the videocard. Afterwards i thought i that it would be better to download the latest nvidia drivers. Since that time i have the same problem with the property settings of the videocard, Ghost Recon (original and supplied version) does not work anymore as goes for liveupdate of msi.
    There is a solution but i think it is CRAP. You have to uninstall nvidia drivers and reinstall the original msi drivers.... bla bla bla... Why is it that there are a lot of known errors with msi/nvidia drivers in conjuntion with the liveupdate, supplied games and with the settings?? I would like to see a (driver)update from msi which is for mortals. I'm not the hacking and phreaking guy, and so are more. I have spent a fortune on this card so MSI get started!!!!!!

  • Displayed Properties in Collection List Renderer are not displayed

    Hello All,
    I have created one custom property and entered the value for a resource which had that property.
    Now, when I am trying to display the custom property in any layout, its not coming, even though I have added the property name in the Displayed Property of the collection list renderer.
    To check the view is taking the correct layout or not, i changed some other settings of the collection list renderer and the changes are immediately getting reflected. What could be the problem here?
    Any help, deeply appreciated
    Regards
    BP

    Hello Bobu,
    Are you using a different Namespace Alias other than 'Default' in your property definition? If so then you need to specify the property in the 'Displayed Properties' parameter of the collection renderer as <NamespaceAlias>:<propetrty ID>, e.g. rnd:displayname.
    Other than that you should check the 'Folder Validity Patterns' and 'Document Validity Patterns' to make sure they are valid for the content on which you are trying to display this property, you may have already checked this.
    Regards,
    Lorcan.

  • How to clear the reader control when displayed on a Win Form?

    Hello
    I am using the reader control to display a pdf using VB.NET 2008 on Windows XP / Win 7.  The pdf is realted to a record displayed in a grid.  The problem I am having is I can not find a way to clear the document.
    The grid is filtered and can be changed by the user.  When the filter changes the reader control has no file to reference, but I can not find a "clear" function.  When the form loads the reader control is nicely blank but I can not revert to that state.  I created a blank pdf but that is confusing because the toolbar remains.  So what now?  Hide that?  Then hide the scrollbars and hope more quirky things don't happen.
    Is there a way to have an empty reader control (like it exists when the form loads) without destroying and re-creating the control every time?
    Thanks
    JM

    Hi Derek,
    I would suggest you check out a piece of freeware called 'CCLEANER' from the following link :_
    http://www.ccleaner.com/
    I use this myself on a regular basis to clear out unwanted bits and pieces from my system including internet cookies which I do not want.
    Be careful though, it can sometimes clean more than expected. :)
    regards,

  • Rnd:action in displayed properties of resource renderer to open a webdynpro

    Hi,
    In the collection renderers of the SAP KMC, we define the displayed properties as below.
    rnd:iconrnd:displayname(contentlink)rnd:action
    Which means that the displayname of the resource is shown as hyperlink and we click on it the resource opens in the respective editor.
    I have an requirement when I click on the hyperlink of the display name I want to open a webdypro application. How can this be achieved.
    Any inputs will be of great help.
    Regards,
    Sreeram

    Hi,
    Firstly thanks for your quick reply. My requirement is , I have some images in a folder in KM of portal for example : /document/IMAP. If I click on this file , it should invoke a webdynpro application. I have follwed ur blog and created a oth file and uploded in /etc/oth folder. After doing this I thought when I click on any file in /documents/IMAP folder the webdynpro application will open but its not happening.
    my oth file is as below
    <?xml version="1.0"?>
    <ObjectTypeHandler Name="IMAPOTH" Class="com.sapportals.wcm.service.objecttypehandler.GenericObjectTypeHandler">
    <SelectionCriteria>
    <Paths>
    <Path>/documents/IMAP/**</Path>
    </Paths>
    </SelectionCriteria>
    <Actions>
    <Action>
    <ActionType Type="view" Namespace="http://sapportals.com/xmlns/cm"/>
    <ActionURL URL="/webdynpro/dispatcher/local/DropDownApp/DropDownApp?Resource=&lt;resource.uri&gt;"/>
    </Action>
    </Actions>
    </ObjectTypeHandler>
    Regards,
    Sreeram

  • Officejet pro 8500a control panel display is all white. Any fixes? Can it be repaired?

    Control panel display is white.  Can't see any of the functions.  I know there has been alot of problems with this printer.  Has anyone gotten this display panel repaired or replaced?  Any help would be very appreciated thanks!!!

    Hi ellis056
    I'd like to help you with the display screen. There may be a firmware update for the printer, please select your printer from the list below to download and see if there is an update available.
    HP Officejet Pro 8500A e-All-in-One Printer - A910a
    HP Officejet Pro 8500A Plus e-All-in-One Printer - A910g and A910n
    How Do I Find My Model Number or Product Number?
    Also, do you have the printer connected to a wall outlet for power or a surge protector?
    Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector
    In this document you will see,
    ISSUE:
    Problems or issues may arise when an HP LaserJet series printer is connected to an uninterruptible power supply (UPS), a power strip, or a surge protector
    This is not limited to Laserjet printers. 
    If you have the printer connected directly to a wall outlet, you can try doing Resetting the Printer.
    Please let me know if either of these solutions resolve the issue, thanks.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • J6480 LCD Control Panel Display Malfunction

    My All-In-One J6480 Officejet is on its last legs.  In 2010, I added a Win 7 based laptop to my wireless home network shared with a Vista based 32 bit OS.  That created some lasting conflicts that still result in not being able to scan from the Win 7 laptop.  I can live with that, but recently the control panel display began to fade out across horizontal bar areas.  Now, the panel is almost completely barren of all display characters.  Messages, options, etc. are all invisible. If anyone has been able to correct a similar situation, please help.

    Hi , Welcome to the HP Forums! I understand that the panel is almost completely barren of all display characters, on your HP Officejet J6480. I am happy to help! Please take a look through this guide, The HP Printer Won't Turn On or Respond When the Power Button is Pressed, that deals with power related issues.  Hope this guide helps!

Maybe you are looking for

  • Sync outlook mail account from the infotab in Itunes

    Hi! I have selectet my outlook mailaccount from the infotab in Itunes, and expected it to appere in Mail on my Iphone. But even if it shows how many unread mails I have got, I can not find them. When I open Mail it is like I have no mailaccount ready

  • What is a good template engine?

    I want your suggestions on good template engine. My project is almost done and ready to go to production in few weeks, I want something which is easy to learn yet good enough. Following are my specific requirements: 1) We have like 150 jsps (not too

  • MySql and PreparedStatement

    I am using WSAD 5.1 (Websphere Application Developer). My database is MySQL. I have set up a datasource that connects to MySQL in WSAD. I have a simple code that connects to the datasource using InitialContext.lookup. My Code : Connection conn = null

  • ORA-00935:  group function is nested too deeply - SQL Query is correct...

    select s.sname, to_char(sum(t.amount), 'fm$999999.00') from transactions t, salespeople s where t.sid = s.sid group by s.sname, t.year having (t.year = 1997) and max(sum(t.amount)); I'm trying to print sales person name who had the highest total sell

  • Php ultradev 4

    Hi there, I am using Dreamweaver Ultradev 4.  Very old I know. I would like to set myself up for a database connection using php, mysql.  I can't seem to find a compatible server model extension to set up my site.  I have tried the one from Adobe but