Can not display tooltip when mouse is over text on PDF - pdf

I need some way to have like a tooltip when the mouse is over text. I mean, something like <block>Some text</block> and when the mouse is over "Some text" y need to display a tooltip, just like an HTML link that when the mouse is over it, a tooltip with the value of the title attribute is displayed.
I've searched so much and could not find the answer to my problem.

Annotations in PDF are not part of the XSL FO Specification. The only product I am aware of that supports such things is RenderX's XEP engine. You can review the documentation on this feature here:
http://www.renderx.com/reference.html#PDF%20Note%20Annotations
One would use:
<fo:block>Note here<rx:pdf-comment content="This is the text of a popup comment"/> and some text after</fo:block>
rx:pdf-comment has additional attributes to set the title of the annotation, the color of the annotation and the opacity it displays with. You can also change the icon used in the PDF.

Related

React Native Text Selection (Highlight text in different colors) HTML view and custom menu

Help, I am having trouble completing the required functionality:
Highlight text (Select text and highlight in colors).
Make notes in the selected text.
I already tried almost all of the libraries available (https://www.npmjs.com/package/#astrocoders/react-native-selectable-text and
https://www.npmjs.com/package/react-native-cn-quill/v/0.7.6 etc), but had no success. Ideally, I would like to hire someone to implement the required functionality.
I have attached a screenshot to understand the functionality.
enter image description here
a little late but maybe this helps:
used:
"#alentoma/react-native-selectable-text"
to create this:
https://github.com/Domth13/React-Native-Highlight-Text

Can the Font for a UWP Drag and Drop (DragUI) caption be changed?

I am implementing drag and drop for a UWP application and all is working well, except for the Font on the DragUI caption.
I have DragUIOverride.IsCaptionVisible = True and DragUIOverride.Caption = "My Text String",
but does anyone know how to change the font? My application uses a unique font and the system font stick out like a sore thumb.
(On a similar vein, I had the same issue with ToolTips, but figured out how to set a new style for ToolTip in <Application.Resources>, but I cant seem to find anything (i.e. a TargetType) for the DragUI text.)
Any help appreciated.
Can the Font for a UWP Drag and Drop (DragUI) caption be changed?
I'm afraid, you can't change the font style for DragUIOverride.Caption, currently, there is not such api to change Caption font, it was manage by the system. And you could post your requirement with windows feed back hub.
And we have a workaround that use SetContentFromBitmapImage method insert text image to replace DragUIOverride.Caption. For more please refer XamlDragAndDrop code sample

How can I make an image float or right-align in a Google Colab markdown cell?

To explain the process that is going on in my notebook code, I use markdown text boxes between snippets of code. I would like to use small images to illustrate the text (a diagram often makes text clearer).
I cannot find a way of having those images floating on the right however.
I tried adding tags with CSS styling, but Colab seems to be removing those. I tried wrapping things in , but again no luck there.
You can also use the now deprecated align attribute on the image tag.
https://html.com/attributes/img-align/
One option is to use an HTML cell with the code hidden, which is triggered by the presence of a form title. For example, create a code cell with this content:
##title Some Stuff
%%html
Here are some words.
<img src="https://www.w3schools.com/html/smiley.gif"
style="float:right;width:50px;height:50px;">
Here are some other words and there is an image floating around it.
Then execute the cell & double click on the rendered title to hide the source. The result looks like this:

Highlighting text?

I've been searching for a while to know how Highlighting text (books on PDF, epub, mobi) works programmatically, what kind of code or tech stays behind this feature, yet I couldn't find anything. If you know, please share any hint here.
Thnx in advance
For PDFs you can highlight text by adding a highlight text markup annotation:
12.5.6.10 Text Markup Annotations
Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged (“squiggly”)
underlines (PDF 1.4) in the text of a document. When opened, they shall display a pop-up window containing
the text of the associated note. Table 179 shows the annotation dictionary entries specific to these types of
annotations.
(ISO 32000-1)
You can find details in Table 179. For a specification of annotations in general, read the earlier subsections of section 12.5 Annotations.
Alternatively you can also add the highlighting into the page content. This has the disadvantage that others cannot easily change the highlight (which actually might be an advantage in some use cases). Depending on the PDF viewers to support you might be forced to do this, though.

How do you create PDF Form Fields that will expand to contain their content?

I have a field on a PDF form that could be too small for the contents it needs to hold. Since it is already nearly the size of the page, I need a way to tell adobe to let that field grow to cover more than a page.
I haven't found any way to do this. LiveCycle seems to act like you can do it, but everything tried so far, does not do anything more than add a scroll bar in the online view, and the fails to print all the content. Acrobat doesn't even act like it is possible.
Any ideas?
If you select the field, go to the Layout Palette (Palettes Menu -> Layout (Shift + F9) ) and select the "Expand to Fit" box next to the width and/or height it will expand when more text is entered.