layout | title | description | platform | control | documentation | keywords | api |
---|---|---|---|---|---|---|---|
post |
Localization of JQuery PDF Viewer | Syncfusion |
Learn about Localization support of JQuery PDF Viewer control and more details.Text labels provided in the ejPdfViewer control can be localized. |
js |
PDF viewer |
ug |
ejPdfViewer |
/api/js/ejpdfviewer |
The text labels provided in the ejPdfViewer control can be localized using the collection of localized strings using ej.PdfViewer.Locale for different cultures. By default, ejPdfViewer is localized in “en-US” culture.
The different locale value for the ejPdfViewer control can be specified using the locale property.
{% highlight javascript %}
<script type="text/javascript"> $(function () { $("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', locale:"fr-FR" }); }); </script> {% endhighlight %}Following table shows the default values for the components in the ejPdfViewer widget in ‘en-US’ culture
{{'**Component**' | markdownify}} | {{'**Function**'| markdownify }} | {{'**Keywords**'| markdownify }} | {{'**Values**'| markdownify }} |
toolbar | first | headerText | First |
contentText | Go to the first page of the PDF document. | ||
previous | headerText | Previous | |
contentText | Go to the previous page of the PDF document. | ||
next | headerText | Next | |
contentText | Go to the next page of the PDF document. | ||
last | headerText | Last | |
contentText | Go to the last page of the PDF document. | ||
zoomIn | headerText | Zoom-In | |
contentText | Zoom in to the PDF document. | ||
zoomOut | headerText | Zoom-Out | |
contentText | Zoom out of the PDF document. | ||
pageIndex | headerText | Page Number | |
contentText | Current page number in view. | ||
zoom | headerText | Zoom | |
contentText | Zoom in or out of the PDF document. | ||
fitToWidth | headerText | Fit to Width | |
contentText | Fit the PDF page to the width of the container. | ||
fitToPage | headerText | Fit to Page | |
contentText | Fit the PDF page to the container. | ||
headerText | |||
contentText | Print the PDF document. | ||
download | headerText | Download | |
contentText | Download the PDF document. | ||
search | headerText | Search Text | |
contentText | Search text in the PDF pages. | ||
highlight | headerText | Highlight Text | |
contentText | Highlight text in the PDF pages. | ||
strikeout | headerText | Strikethrough Text | |
contentText | Strikethrough text in the PDF pages. | ||
underline | headerText | Underline Text | |
contentText | Underline text in the PDF pages. | ||
signature | headerText | Signature | |
contentText | Add or create the hand-written signature. | ||
select | headerText | Selection | |
contentText | Selection tool for text. | ||
scroll | headerText | Panning | |
contentText | Click to pan around the document. | ||
contextMenu | copy | contentText | Copy |
googleSearch | contentText | Search Google | |
openPopup | contentText | Open Pop-Up Note | |
Delete | contentText | Delete | |
properties | contentText | Properties | |
Find | contentText | Find | |
matchCase | contentText | Match Case | |
auto | contentText | Auto | |
propertyWindow | underlineProperties | contentText | Underline Properties |
strikeOutProperties | contentText | StrikeOut Properties | |
highlightProperties | contentText | Highlight Properties | |
signatureProperties | contentText | Signature Properties | |
appearance | contentText | Appearance | |
general | contentText | General | |
color | contentText | Color | |
opacity | contentText | Opacity | |
author | contentText | Author | |
subject | contentText | Subject | |
modified | contentText | Modified | |
ok | contentText | OK | |
cancel | contentText | Cancel | |
locked | contentText | Locked | |
signatureWindow | Signature | contentText | Add Signature |
Add | contentText | Add | |
clear | contentText | Clear | |
waitingPopup | contentText | Preparing document for printing... |
The following code snippet illustrates you to change the localization to German culture “de-DE”
{% highlight html %}
//--
|
The following screenshot shows the PDF viewer with tooltip in German language.
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewer_Localization338521894