Adobe Acrobat plugins - plugins

I am building an Adobe Addin/plugin (.api file ) and am faced with two problems
1) I have a cusotm tool that annotates the pdf with images. I want the image to show a tooltip with the author of that anotation when you hover on that image. Is this doabe
2) I am setting bookmarks. When you look at the bookmarks in the bookmark pane how do you control the font and colour of the bookmark caption
any help greatly appreciated
thanks

1) Take a look at function AVDocSetSelection() and the SelectionServer sample plugin in Acrobat SDK
2) The /C key in the XX controls the color of an Outline (bookmark) item. It's an array of three numbers [range 0.0 - 1.0] representing DeviceRGB color to be used for the outline entry’s text. Default value: [ 0.0 0.0 0.0 ]
The /F key controls whether the item is bold or plain styled.
You can not control the font.

Related

Visual Studio Code - How to change the badge color for error tabs?

See the black dot..??
I see a badge on the editor's tabs showing that somthing has been modified. I use to see other badges that showed errors, however, I don't see them anymore. What setting do I use to enable the badges to show errors?
How we see the black badge for a tab where changes have been made, similarly, it would show a red badge (large dot) for the tabs(files) with errors. Now I can't see those. Also, I would like to set custom colour for it.
You can customize your active Visual Studio Code color theme with the workbench.colorCustomizations user setting.
{
"workbench.colorCustomizations": {
"activityBar.background": "#00AA00"
}
}
Color Formats
*Color values can be defined in the RGB color model with an alpha channel for transparency. As format, the following hexadecimal notations are supported: #RGB, #RGBA, #RRGGBB and #RRGGBBAA. R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0-9, a-f or A-F). The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB) and the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example #e35f is the same color as #ee3355ff.
If no alpha value is defined, it defaults to ff (opaque, no transparency). If alpha is set to 00, the color is fully transparent.
Some colors should not be opaque in order to not cover other annotations. Check the color descriptions to see to which colors this applies.
*
This should be what your looking for, let me know if they work, and which one in particular fixed your issue so we can edit your question and write it to properly address the issue your having.
{
// Make sure the tab extends where the button & modified icon is #
"workbench.editor.tabCloseButton": "right",
// Turn on badges & colors for the Source Control decorations
"workbench.editor.decorations.badges": true,
"workbench.editor.decorations.colors": true
// Bonus: If you want them turned on in your File explorer too, use this:
"explorer.decorations.badges": true
"explorer.decorations.colors": true
}

Word VSTO - Unable to set the ForeColor.RGb property for an illustration(graphics) object

Open Word O365 on desktop
Goto Insert > Icons > Illustrations
Choose the bus illustration
Using the following code, I'm unable to set the RGB property of forecolor
InlineShape ish = document.InlineShapes[1];
ish.Fill.Solid();
ish.Fill.ForeColor.RGB = 16777215; //RGB White
The RGB property is 0 before and after I set the value. However, it is interesting to note that the color of the bus changes on the Word application. But not in the debugger.
I would like to check the RGB color value of the ForeColor before I set it. How do I fix this or work around this? Is there anything wrong in the way I'm accessing the properties? This works for all icons in Word.

VSCode : I want to change the text color(not background color, just the words color),whiich profile should I edit?

I have checked the Official Doc about theme settings, after trying too many times, I haven't made it. I want to change the text color(not background color, just the words color), which profile should I edit?
I have spended a few time and solved it. Edit your settings.json as below:
"workbench.colorCustomizations": {
"list.focusForeground": "#00ff00",
},
Replace the color(hex) as what you want, the example code color #00ff00 is green.
BTW, how I get this settings:
Toggle developer tools(In vscode dropmenu of help)
Try to find div where you want change, and get the color, for example (#eeffff)
command + shift + p, and input Generate Color ... will show Generate Color Theme From Current Settings, select it would open a new file with full color configs.
copy all colors json code block to settings file which match key of workbench.colorCustomizations
search #eeffff and try to find relative key, if not sure, change color and try to see the color in your code.
find out list.focusForeground is right. And keep this settings, remove other.
It might spend less or more time, but it works.

Background colors for text boxes in github markdown (e.g. red warning box)

I'm converting some documentation from HTML to github-flavored markdown. I have lots of reddish/pink warning boxes in the old documentation.
e.g.
div.warnbox { background-color:#fcc; border-left: 3px solid #f00; }
~~~~~~
<div class="warnbox">
If you pass null as a parameter the world will end.
</div>
Is there any way to do something similar in (github) markdown? So far I've been using quote boxes which don't come in assertive red:
> If you pass null as a parameter the world will end
I also saw an interesting solution where someone suggested using diff syntax code blocks:
```diff
- If you pass null as a parameter the world will end
```
But that has multiple problems (gray outline, fixed width font, '-' at the beginning of the line, etc)
Is there any way (even if hacky like the diff thing) to do this?
Changing colour is not possible at this time.
If you want to create info or warning boxes, you can do so as of May 2022.
You can use the accessible note or warning blockquote in Markdown
Input:
> **Note**
> This is a note
> **Warning**
> This is a warning
Output Image:
https://github.com/github-community/community/discussions/16925
You can create color text or background in a GitHub markdown file by using diff, to create red and green colors, as in the example:
+ Green Text
- Red Text
Where GitHub markdown file does not support color, even though HTML.

Eclipse Editor Custom Color

In my Eclipse IDE Indigo Release, the color for matching brackets is not set properly, I can't see the text of the tag "<div class=...>" in the bracket, so I want to change it, there is an "Eclipse_Theme.epf" file that I imported into Eclipse to set the custom colors, I've used the following approach before to change the colors I want to replace :
[1] Take a screen shot of the Eclipse editor
[2] Paste the screen into a window's painter program
[3] Use the color picker to pick the color I want to change
[4] Find it's RGB values, e.g. 10,20,255
[5] In "Eclipse_Theme.epf" search for the RBG value and replace them with my new RGB choice, save the file
[6] Import "Eclipse_Theme.epf" into Eclipse again to replace the old one, and the new color will show up in my Eclipse editor.
But some how the above approach didn't work for the above problem, the color for matching brackets is not found in the "Eclipse_Theme.epf" file, my question is , where is it in Eclipse, that I can change this color, or which property in the "Eclipse_Theme.epf" file that represents this color, why is it not found ?!
Try Window->Preferences->Web->HTML->Editor->Syntax Coloring, or something similar, depending on the technology you use (JSF, HTML etc.). Another possibility is Window->Preferences->General->Editors->Text Editors->Annotations