ikinci temizlik tamamlandı

This commit is contained in:
Ümit Tunç
2026-04-28 21:15:09 +03:00
parent f80443aec0
commit 37e7296527
8313 changed files with 2400677 additions and 0 deletions
@@ -0,0 +1,32 @@
// @link WebViewerInstance: https://www.pdftron.com/api/web/WebViewerInstance.html
// @link UI.setLanguage: https://www.pdftron.com/api/web/UI.html#setLanguage__anchor
WebViewer(
{
path: '../../../lib',
additionalTranslations: {
language: 'en',
translations: { 'option.toolbarGroup.toolbarGroup-View': 'Edited View Label' },
},
initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf',
},
document.getElementById('viewer')
).then(instance => {
samplesSetup(instance);
document.getElementById('form').onchange = e => {
// Set language
instance.UI.setLanguage(e.target.id);
};
// To Create a new button into the settings menu and set the translation
instance.UI.settingsMenuOverlay.add(
{
type: 'actionButton',
className: 'row',
dataElement: 'languageButton',
label: 'Language',
},
'downloadButton'
);
});