Sair
  • Comunidade global
    • Idioma:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Rounded edges on gestures on ink annotations after adobe update

Novato ,
Nov 14, 2022 Nov 14, 2022

Hi - I have a PDF form where we have a few ink annotations that are programmatically added via javascript a based on a save trigger.  I noticed after the recent adobe upgrades that the edges are now rounded on the gestures which is causing a problem with some of our systems that read the documents.  Does anyone have any ideas on why this is happening or how to fix? 

Current/post-upgrade:

Benjamin27075656e2it_0-1668439044547.png

 

 


Previous/pre-upgrade:

Benjamin27075656e2it_2-1668439044784.png

 

 

 

TÓPICOS
Criar PDFs , JavaScript , PDF forms , Digitalização de documentos e OCR
2.3K
Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
1 SOLUÇÃO ACEITE
Community Expert ,
Nov 14, 2022 Nov 14, 2022

Ideally the line ending shape would be set with a property, such as the lineEnding property. 

But, the documentation indicates that it does not apply to the ink annot, not that the documentation has much meaning on this issue, but I believe this is a change in how the ink annot works and there isn't a setting for it  

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#lineending

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Ver solução na publicação original

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Community Expert ,
Nov 14, 2022 Nov 14, 2022

Just for my clarification - is this a pencil/drawing annotation?  I tried to create one manually, and I get a rounded line endcap that way.

Dave

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Novato ,
Nov 14, 2022 Nov 14, 2022

Hi Dave - thank you for the response.  The type of annotation is Ink and I'm drawing within the annotation using the 'gestures' variable.  An example is below.  I'm seeing the rounded line endcaps now too but am trying to see if I can get it to display with the flat endcap again.

 

var gestureArr = new Array();
gestureArr[0] = [100,100];
gestureArr[1] = [110,100];
console.println(points);
this.addAnnot({
type: "Ink",
page: 0,
gestures: [gestureArr],
strokeColor: color.red,
width: 1
})

 

Benjamin27075656e2it_0-1668452056528.png

 

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Novato ,
Nov 14, 2022 Nov 14, 2022

quick correction to the code snipped - I had some debugging in there.

 

var gestureArr = new Array();
gestureArr[0] = [100,100];
gestureArr[1] = [110,100];
this.addAnnot({
type: "Ink",
page: 0,
gestures: [gestureArr],
strokeColor: color.red,
width: 1
});

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Community Expert ,
Nov 14, 2022 Nov 14, 2022

Ideally the line ending shape would be set with a property, such as the lineEnding property. 

But, the documentation indicates that it does not apply to the ink annot, not that the documentation has much meaning on this issue, but I believe this is a change in how the ink annot works and there isn't a setting for it  

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#lineending

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Novato ,
Nov 14, 2022 Nov 14, 2022
MAIS RECENTE

Thank you for the response.  Yeah it looks like that is the case.  Hopefully there is an undocumented way to set the lineEndings in the gestures or this gets reverted/configurable in the next update.  

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines