How to lock Shape label without lock shape annotation?

Hi! I'm working with PDFViewer component and i need have the shape label in mode isLock without lock shape annotation completly. I tried to use freeTextSettings isReadonly and is lock mode but label still editable (i need label locked and no content editable, only resize shape and move).


Thanks by advanced, regards


5 Replies

VS Vasugi Sivajothi Syncfusion Team August 6, 2021 02:03 PM UTC

Hi Benjamin, 

Thank you for contacting Syncfusion support. 

Please find the details, 

Query 
Details 
Hi! I'm working with PDFViewer component and i need have the shape label in mode isLock without lock shape annotation completly.  

Currently, we do not have support to lock the shape label for shape annotations. We will analyze further on this and update you with more details on August 10, 2021. 

 I tried to use freeTextSettings isReadonly and is lock mode but label still editable (i need label locked and no content editable, only resize shape and move). 


You need to set isReadonly property as true for free text annotation to lock the content of free text annotation. We have shared the code snippet and sample for your reference. Please refer to the below. 

Code Snippet:  


<ejs-pdfviewer id="pdfViewer" [serviceUrl]='service' [documentPath]='document' 
            [freeTextSettings]='freeTextSettings' style="height:640px;display:block"></ejs-pdfviewer> 

public freeTextSettings = { isReadonly: 'true' }; 





Regards, 
Vasugi. 




BE Benjamin August 10, 2021 03:47 PM UTC

thank you Vasugi! i will wait for the analysis of the lock shape label. The 2nd query is fine for me.



VS Vasugi Sivajothi Syncfusion Team August 10, 2021 04:47 PM UTC

Hi Benjamin,  
 
Thank you for your patience. 
 
Please find the details. 
 
Query 
Details 
 
Hi! I'm working with PDFViewer component and i need have the shape label in mode isLock without lock shape annotation completly.   
 
 
We do not have the support to lock the label content of shape annotations. There is a property enableShapeLabel to enable the label for the shape annotations. Could you please confirm whether you want to disable editing the value of label content when the enableShapeLabel property is marked as TRUE for the shape annotations? Please let us know if this suits your requirement. If not share more details about your requirement. This will be helpful to investigate further and provide the solution at the earliest. 
 
 
 
Regards, 
Vasugi. 
 



BE Benjamin August 11, 2021 02:31 PM UTC

Hi Vasugi! 


"Could you please confirm whether you want to disable editing the value of label content when the enableShapeLabel property is marked as TRUE for the shape annotations?" 


Yes! Is exactly i want do it. 



VS Vasugi Sivajothi Syncfusion Team August 12, 2021 01:57 PM UTC

Hi Benjamin,  
 
Thank you for the update. 
 
As we mentioned earlier, currently, we do not have support to lock the shape label for shape annotations. We have considered this as a feature request and the implementation will be included in any of our upcoming releases. 
 
Now, you can track the status through the below link.  
 
 
Regards, 
Vasugi. 


Loader.
Up arrow icon