question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Annotation and comment empty text field

See original GitHub issue

Hey all,

I want to annotate or comment some positions. With the code below the annptations are visible in adobe but without the assigned text.

const edit: Recipe = hummusRecipe.editPage(1);
      // tslint:disable-next-line:no-increment-decrement
      for (let index: number = 0; index < interactions.length; index++) {
        const interaction: IInteraction = interactions[index];
        const slide: ISlide = interaction.to.asset as ISlide;
        console.log(interaction);
        edit.comment('Test', 300, 400).text('Test', 200, 300).annot(300, 600, 'Caret', {
          title: 'Test',
          width: 300,
          height: 300,
          flag: 'readonly'
        });
        /**
         * 
         */
      
        
      }
edit.endPage().endPDF();
Bildschirmfoto 2019-05-20 um 13 26 53

Anyone knows the problem? Thanks in advance!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ozieraucommented, May 21, 2019

FIX: Updated hummus recipe annotations.js with the following: Instead of doing

.writeKey('T')
        .writeLiteralStringValue(this.writer.createPDFTextString(params.title).toBytesArray())

i changed it to:

.writeKey('T')
        .writeLiteralStringValue(params.title || '')

and it worked.

Also the hummus recipe documentation forgot to add annotation.options.text as a possibility.

0reactions
negomansinicommented, Nov 6, 2019

hey!

I just pulled the latest and still having no luck can any else confirm this? Basically its setting all the options and the coords of the annotation but the annotation is empty still. I had a look at the hummus library but have not really seen any issues with this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to position annotate text in the blank area of facet ggplot
Lets have a faceted ggplot with data as below with with 2 rows and 2 columns. So there is blank space in place...
Read more >
Insert comments and notes in Excel - Microsoft Support
Insert simple notes for annotation purposes · Right-click the cell and then click Insert Comment (or press Shift+F2). If you're using Excel for...
Read more >
Avoid Unwanted/Blank Text Annotations in Preview.app
For some reason Preview thinks I want to add an annotation everywhere I click even though I have not selected the Text tool....
Read more >
Adding Comment (Annotation to Document) - Tips
Once you've selected Text Box, it is now persistent. When you click anywhere else, it makes a new box. I had a couple...
Read more >
Comment Tool | Alteryx Help
The Comment tool adds annotation to the project workspace. ... In the Text field, enter the text to appear in the comment box, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found