[DE] Add pdf producer info

This commit is contained in:
Julia Radzhabova 2022-04-27 16:53:45 +03:00 committed by catbasilio
parent c8e85d1d57
commit 0c383552ac
37 changed files with 100 additions and 36 deletions

View file

@ -1136,8 +1136,8 @@ define([
'<td class="left"><label>' + this.txtModifyBy + '</label></td>',
'<td class="right"><label id="id-info-modify-by"></label></td>',
'</tr>',
'<tr class="divider modify">',
'<tr class="divider modify">',
'<tr class="divider modify"></tr>',
'<tr class="divider modify"></tr>',
'<tr>',
'<td class="left"><label>' + this.txtCreated + '</label></td>',
'<td class="right"><label id="id-info-date"></label></td>',
@ -1150,6 +1150,11 @@ define([
'<td class="left"><label>' + this.txtAuthor + '</label></td>',
'<td class="right"><label id="id-lbl-info-author"></label></td>',
'</tr>',
'<tr class="divider pdf-info"></tr>',
'<tr class="pdf-info">',
'<td class="left"><label>' + this.txtPdfProducer + '</label></td>',
'<td class="right"><label id="id-info-pdf-produce"></label></td>',
'</tr>',
'<tr class="pdf-info">',
'<td class="left"><label>' + this.txtPdfVer + '</label></td>',
'<td class="right"><label id="id-info-pdf-ver"></label></td>',
@ -1308,6 +1313,7 @@ define([
this.lblPdfAuthor = $markup.findById('#id-lbl-info-author');
this.lblPdfVer = $markup.findById('#id-info-pdf-ver');
this.lblPdfTagged = $markup.findById('#id-info-pdf-tagged');
this.lblPdfProducer = $markup.findById('#id-info-pdf-produce');
this.lblFastWV = $markup.findById('#id-info-fast-wv');
this.btnApply = new Common.UI.Button({
@ -1394,7 +1400,7 @@ define([
this.lblApplication.text(appname);
} else if (pdfProps) {
$('.docx-info', this.el).hide();
appname = pdfProps ? pdfProps.Producer || '' : '';
appname = pdfProps ? pdfProps.Creator || '' : '';
this.lblApplication.text(appname);
}
this._ShowHideInfoItem(this.lblApplication, !!appname);
@ -1521,6 +1527,10 @@ define([
this.lblPdfTagged.text(value===true ? this.txtYes : this.txtNo);
this._ShowHideInfoItem(this.lblPdfTagged, value !== undefined);
value = props.Producer;
value && this.lblPdfProducer.text(value);
this._ShowHideInfoItem(this.lblPdfProducer, !!value);
value = props.FastWebView;
if (value !== undefined)
this.lblFastWV.text(value===true ? this.txtYes : this.txtNo);
@ -1686,7 +1696,8 @@ define([
txtPdfTagged: 'Tagged PDF',
txtFastWV: 'Fast Web View',
txtYes: 'Yes',
txtNo: 'No'
txtNo: 'No',
txtPdfProducer: 'PDF Producer'
}, DE.Views.FileMenuPanels.DocumentInfo || {}));

View file

@ -1702,6 +1702,7 @@
"DE.Views.FileMenuPanels.DocumentInfo.txtParagraphs": "Paragraphs",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfTagged": "Tagged PDF",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfVer": "PDF Version",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfProducer": "PDF Producer",
"DE.Views.FileMenuPanels.DocumentInfo.txtPlacement": "Location",
"DE.Views.FileMenuPanels.DocumentInfo.txtRights": "Persons who have rights",
"DE.Views.FileMenuPanels.DocumentInfo.txtSpaces": "Symbols with spaces",

View file

@ -1702,6 +1702,7 @@
"DE.Views.FileMenuPanels.DocumentInfo.txtParagraphs": "Абзацы",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfTagged": "PDF с тегами",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfVer": "Версия PDF",
"DE.Views.FileMenuPanels.DocumentInfo.txtPdfProducer": "Производитель PDF",
"DE.Views.FileMenuPanels.DocumentInfo.txtPlacement": "Размещение",
"DE.Views.FileMenuPanels.DocumentInfo.txtRights": "Люди, имеющие права",
"DE.Views.FileMenuPanels.DocumentInfo.txtSpaces": "Символы с пробелами",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Saxlanmamış dəyişiklikləriniz var. Avtomatik saxlanmanı gözləmək üçün \"Bu Səhifədə Qalın\" üzərinə klikləyin. Bütün saxlanmamış dəyişiklikləri ləğv etmək üçün \"Bu səhifədən Çıxın\" hissəsinin üzərinə klikləyin.",

View file

@ -621,7 +621,8 @@
"txtDownloadTxt": "Download TXT",
"txtIncorrectPwd": "Password is incorrect",
"txtProtected": "Once you enter the password and open the file, the current password will be reset",
"txtScheme22": "New Office"
"txtScheme22": "New Office",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveTitleText": "Вы выходзіце з праграмы",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Esplanada",
"txtScheme7": "Equitat",
"txtScheme8": "Flux",
"txtScheme9": "Foneria"
"txtScheme9": "Foneria",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Tens canvis sense desar. Fes clic a \"Mantingueu-vos en aquesta pàgina\" per esperar al desament automàtic. Fes clic a \"Deixar aquesta pàgina\" per descartar tots els canvis no desats.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Hala",
"txtScheme7": "Rovnost",
"txtScheme8": "Tok",
"txtScheme9": "Slévárna"
"txtScheme9": "Slévárna",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "V tomto dokumentu máte neuložené změny. Klikněte na 'Zůstat na této stránce'. Klikněte na 'Opustit tuto stránku' pro zahození neuložených změn.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Sie haben nicht gespeicherte Änderungen. Klicken Sie auf \"Auf dieser Seite bleiben\" und warten Sie, bis die Datei automatisch gespeichert wird. Klicken Sie auf \"Die Seite verlassen\", um nicht gespeicherte Änderungen zu verwerfen.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Έχετε μη αποθηκευμένες αλλαγές. Πατήστε 'Παραμονή στη Σελίδα' για να περιμένετε την αυτόματη αποθήκευση. Πατήστε 'Έξοδος από τη Σελίδα' για να απορρίψετε όλες τις μη αποθηκευμένες αλλαγές.",

View file

@ -574,6 +574,7 @@
"textParagraphs": "Paragraphs",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textPdfProducer": "PDF Producer",
"textPoint": "Point",
"textPortrait": "Portrait",
"textPrint": "Print",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Concurrencia",
"txtScheme7": "Equidad ",
"txtScheme8": "Flujo",
"txtScheme9": "Fundición"
"txtScheme9": "Fundición",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Tiene cambios sin guardar. Haga clic en \"Permanecer en esta página\" para esperar a que se guarde automáticamente. Haga clic en \"Salir de esta página\" para descartar todos los cambios no guardados.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Rotonde",
"txtScheme7": "Capitaux",
"txtScheme8": "Flux",
"txtScheme9": "Fonderie"
"txtScheme9": "Fonderie",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Vous avez des modifications non enregistrées dans ce document. Cliquez sur Rester sur cette page et attendez l'enregistrement automatique. Cliquez sur Quitter cette page pour annuler toutes les modifications non enregistrées.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Ten cambios sen gardar. Prema en \"Permanecer nesta páxina\" para esperar a que se garde automaticamente. Prema en \"Saír desta páxina\" para descartar todos os cambios non gardados.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Előcsarnok",
"txtScheme7": "Saját tőke",
"txtScheme8": "Folyam",
"txtScheme9": "Öntöde"
"txtScheme9": "Öntöde",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Nem mentett módosításai vannak. Kattintson a „Maradj ezen az oldalon” gombra az automatikus mentés megvárásához. Kattintson a \"Hagyja el ezt az oldalt\" gombra az összes nem mentett módosítás elvetéséhez.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Hai dei cambiamenti non salvati. Premi 'Rimanere sulla pagina' per attendere il salvataggio automatico. Premi 'Lasciare la pagina' per eliminare tutte le modifiche non salvate.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "コンコース",
"txtScheme7": "株主資本",
"txtScheme8": "フロー",
"txtScheme9": "ファウンドリ"
"txtScheme9": "ファウンドリ",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "保存されていない変更があります。自動保存を待つように「このページから移動しない」をクリックしてください。保存されていない変更を破棄ように「このページから移動する」をクリックしてください。",

View file

@ -621,7 +621,8 @@
"txtScheme6": "광장",
"txtScheme7": "같음",
"txtScheme8": "플로우",
"txtScheme9": "발견"
"txtScheme9": "발견",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "저장하지 않은 변경 사항이 있습니다. 자동 저장이 완료될 때까지 기다리려면 \"이 페이지에 머물기\"를 클릭하십시오. \"이 페이지에서 나가기\"를 클릭하면 저장되지 않은 모든 변경 사항이 삭제됩니다.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "ເປັນກຸ່ມ",
"txtScheme7": "ຄວາມເທົ່າທຽມກັນ",
"txtScheme8": "ຂະບວນການ",
"txtScheme9": "ໂຮງຫລໍ່"
"txtScheme9": "ໂຮງຫລໍ່",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "ທ່ານມີການປ່ຽນແປງທີ່ຍັງບໍ່ໄດ້ບັນທຶກໄວ້. ຄລິກທີ່ 'ຢູ່ໃນໜ້ານີ້' ເພື່ອລໍຖ້າການບັນທຶກອັດຕະໂນມັດ. ຄລິກ 'ອອກຈາກໜ້ານີ້' ເພື່ອຍົກເລີກການປ່ຽນແປງທີ່ບໍ່ໄດ້ບັນທຶກໄວ້ທັງໝົດ.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "U heeft nog niet opgeslagen wijzigingen. Klik op 'Blijf op deze pagina' om te wachten op automatisch opslaan. Klik op 'Verlaat deze pagina' om alle niet-opgeslagen wijzigingen te verwijderen.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"txtScheme9": "Fundição",
"textFastWV": "Fast Web View",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version"
"textPdfVer": "PDF Version",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Você tem mudanças não salvas. Clique em 'Ficar nesta página' para esperar pela auto-salvar. Clique em 'Sair desta página' para descartar todas as mudanças não salvas.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "Concurență",
"txtScheme7": "Echilibru",
"txtScheme8": "Flux",
"txtScheme9": "Forjă"
"txtScheme9": "Forjă",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Nu ați salvat modificările din documentul. Faceți clic pe Rămâi în pagină și așteptați la salvare automată. Faceți clic pe Părăsește aceasta pagina ca să renunțați la toate modificările nesalvate.",

View file

@ -574,6 +574,7 @@
"textParagraphs": "Абзацы",
"textPdfTagged": "PDF с тегами",
"textPdfVer": "Версия PDF",
"textPdfProducer": "Производитель PDF",
"textPoint": "Пункт",
"textPortrait": "Книжная",
"textPrint": "Печать",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Máte neuložené zmeny. Kliknite na „Zostať na tejto stránke“ a počkajte na automatické uloženie. Kliknutím na „Opustiť túto stránku“ zahodíte všetky neuložené zmeny.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"textPdfVer": "PDF Version",
"textYes": "Yes",
"txtScheme14": "Oriel",
"txtScheme19": "Trek"
"txtScheme19": "Trek",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "Kaydedilmemiş değişiklikleriniz mevcut. Otomatik kaydetmeyi beklemek için 'Bu Sayfada Kal' seçeneğini tıklayın. Kaydedilmemiş tüm değişiklikleri atmak için 'Bu Sayfadan Ayrıl'ı tıklayın.",

View file

@ -621,7 +621,8 @@
"textPageSize": "Page Size",
"textPdfTagged": "Tagged PDF",
"textPdfVer": "PDF Version",
"textYes": "Yes"
"textYes": "Yes",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "У документі є незбережені зміни. Натисніть 'Залишитись на сторінці', щоб дочекатися автозбереження. Натисніть 'Піти зі сторінки', щоб скинути всі незбережені зміни.",

View file

@ -621,7 +621,8 @@
"textPdfTagged": "Tagged PDF",
"textFastWV": "Fast Web View",
"textYes": "Yes",
"textNo": "No"
"textNo": "No",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View file

@ -621,7 +621,8 @@
"txtScheme6": "汇合",
"txtScheme7": "公平",
"txtScheme8": "流动",
"txtScheme9": "发现"
"txtScheme9": "发现",
"textPdfProducer": "PDF Producer"
},
"Toolbar": {
"dlgLeaveMsgText": "你有未保存的修改。点击“留在该页”可等待自动保存完成。点击“离开该页”将丢弃全部未经保存的修改。",

View file

@ -88,6 +88,9 @@ class DocumentInfoController extends Component {
value = props.Version;
if(value) this.docInfoObject.version = value;
value = props.Producer;
if(value) this.docInfoObject.producer = value;
value = props.Tagged;
if (value !== undefined)
this.docInfoObject.tagged = (value===true ? _t.textYes : _t.textNo);
@ -120,7 +123,7 @@ class DocumentInfoController extends Component {
return appName || '';
} else if (this.pdfProps) {
appName = this.pdfProps ? this.pdfProps.Producer || '' : '';
appName = this.pdfProps ? this.pdfProps.Creator || '' : '';
return appName;
}
}

View file

@ -28,6 +28,7 @@ const PageDocumentInfo = (props) => {
modifyBy,
modifyDate,
author,
producer,
version,
tagged,
fastWebView,
@ -145,9 +146,24 @@ const PageDocumentInfo = (props) => {
</List>
</Fragment>
) : null}
{fileType === 'pdf' && author ? (
<Fragment>
<BlockTitle>{t('Settings.textAuthor')}</BlockTitle>
<List>
<ListItem title={author}></ListItem>
</List>
</Fragment>
) : null}
{ fileType === 'pdf' && producer ? (
<Fragment>
<BlockTitle>{t('Settings.textPdfProducer')}</BlockTitle>
<List>
<ListItem title={producer}></ListItem>
</List>
</Fragment>
) : null}
{ fileType === 'pdf' ? (
<List>
<ListItem title={t('Settings.textAuthor')} after={author} />
<ListItem title={t('Settings.textPdfVer')} after={version} />
<ListItem title={t('Settings.textPdfTagged')} after={tagged} />
<ListItem title={t('Settings.textFastWV')} after={fastWebView} />