Change Organize Pages buttons labels

Dear Syncfusion Team,


I have few questions regarding Pdf-Viewer presentation:


1) Ho to modify default SaveAs and Save in Organize Pages - so it would display 'Download' and 'Apply' instead (without messing with CSS)?

2) How to change default 'Guest' in comment section whenever any new annotation/form/stamp - anything is added? - Each of them should be configured separately with different settings model, or is there some default author that can be set?

3) There are some PDFs for which Bookmars are not working - including on Default Demo Standaolne PDF Viewer - That is the example pdf to reproduce https://www.gutenberg.org/files/6130/old/6130-pdf.pdf


Best regards


5 Replies 1 reply marked as answer

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team August 20, 2024 03:15 PM UTC

Hi RolJan,

Please find the details.


How to modify default SaveAs and Save in Organize Pages - so it would display 'Download' and 'Apply' instead (without messing with CSS)?

 

You can change the "Save As" and "Save" button names to "Download" and "Apply" using the defaultLocale property. Here is the code snippet and sample for this functionality.

Code snippet:

 

public created() {

    this.pdfviewerControl.defaultLocale['Save'] = 'Apply';

    this.pdfviewerControl.defaultLocale['Save As'] = 'Download';

}

 

Sample: Sretkb (forked) - StackBlitz

How to change default 'Guest' in comment section whenever any new annotation/form/stamp - anything is added? - Each of them should be configured separately with different settings model, or is there some default author that can be set?

 

We have an author property within the `annotationSettings` API that allows you to set the user name in the comment panel. Here is the code snippet and a sample for this.

 

Code snippet:
 

 

<ejs-pdfviewer

    #pdfviewer

    id="pdfViewer"

    (created)="created($event)"

    [annotationSettings]="annotationSettings"

    [documentPath]="document"

    [resourceUrl]="resource"

    style="height:640px;display:block"

></ejs-pdfviewer>

 

public annotationSettings = {

    author: 'Syncfusion',

};


Sample: Sretkb (forked) - StackBlitz

 

Note: The `annotationSettings` API is used to change the author name for all annotations. Additionally, you can change the author name for individual annotations using the individual annotation settings. Please refer to the documentation links below for more details.

 

There are some PDFs for which Bookmars are not working - including on Default Demo Standaolne PDF Viewer - That is the example pdf to reproduce  https://www.gutenberg.org/files/6130/old/6130-pdf.pdf

In the provided document, the bookmark renders in the PDF Viewer, but the bookmark navigation is not working. Could you please confirm if this is the issue you were referring to?
 


Marked as answer

RO RolJan August 21, 2024 03:07 PM UTC

Thank you for quick feedback, two first questions are resolved - for bookmarks - yes, it's rendered, but navigation does not work



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team August 22, 2024 12:55 PM UTC

Hi RolJan,

Thanks for the update. we were able to reproduce the reported scenario “
Bookmark navigation is not working in the provided document”. We will analyze further on this and update you with more details in two business days on August 26, 2024.



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team August 27, 2024 10:41 AM UTC

Hi RolJan,

We have logged this as a defect as "Bookmark navigation is not working in the provided document" and will include the fix in our weekly NuGet release, which is estimated to be available on September 17, 2024. You can track the status of the issue through the following link.

 

Feedback link: Bookmark navigation is not working in the provided document | Issue Feedback

 

Disclaimer: "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization."



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team September 19, 2024 12:47 PM UTC

Hi RolJan,

We are glad to announce that our Essential Studio 2024 Volume 3 Main Release v27.1.48 is rolled out and is available for download under the following link.

 

Essential Studio 2024 Volume 3 Main Release v27.1.48 is available for download | Announcements Forums | Syncfusion

 

The fix for the reported issue "Bookmark navigation is not working in the provided document" was included in this release.

 

Root cause: We missed to retrieve the NamedDestination from the bookmark. 

 

Solution: We retrieved the NamedDestination from the bookmark. 

 

Packages:   

@syncfusion/ej2-pdfviewer - npm (npmjs.com)

@syncfusion/ej2-angular-pdfviewer - npm (npmjs.com)

 

CDN links:

https://cdn.syncfusion.com/ej2/27.1.48/material.css

https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib/pdfium.js

https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib/pdfium.wasm

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Loader.
Up arrow icon