Expose the Linearization status in the document properties dialog
This uses the same terminology, i.e. "Fast Web View", as is used by Adobe software.
This commit is contained in:
parent
928b89382e
commit
522040d130
@ -120,6 +120,11 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}
|
|||||||
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
||||||
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
||||||
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
||||||
|
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
|
||||||
|
# the document; usually called "Fast Web View" in English locales of Adobe software.
|
||||||
|
document_properties_linearized=Fast Web View:
|
||||||
|
document_properties_linearized_yes=Yes
|
||||||
|
document_properties_linearized_no=No
|
||||||
document_properties_close=Close
|
document_properties_close=Close
|
||||||
|
|
||||||
print_progress_message=Preparing document for printing…
|
print_progress_message=Preparing document for printing…
|
||||||
|
@ -120,6 +120,11 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}
|
|||||||
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
||||||
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
||||||
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
||||||
|
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
|
||||||
|
# the document; usually called "Fast Web View" in English locales of Adobe software.
|
||||||
|
document_properties_linearized=Snelle webweergave:
|
||||||
|
document_properties_linearized_yes=Ja
|
||||||
|
document_properties_linearized_no=Nee
|
||||||
document_properties_close=Sluiten
|
document_properties_close=Sluiten
|
||||||
|
|
||||||
print_progress_message=Document voorbereiden voor afdrukken…
|
print_progress_message=Document voorbereiden voor afdrukken…
|
||||||
|
@ -120,6 +120,11 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}
|
|||||||
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
|
||||||
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
|
||||||
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
|
||||||
|
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
|
||||||
|
# the document; usually called "Fast Web View" in English locales of Adobe software.
|
||||||
|
document_properties_linearized=Snabb webbvisning:
|
||||||
|
document_properties_linearized_yes=Ja
|
||||||
|
document_properties_linearized_no=Nej
|
||||||
document_properties_close=Stäng
|
document_properties_close=Stäng
|
||||||
|
|
||||||
print_progress_message=Förbereder sidor för utskrift…
|
print_progress_message=Förbereder sidor för utskrift…
|
||||||
|
@ -128,9 +128,10 @@ class PDFDocumentProperties {
|
|||||||
return this._parsePageSize(getPageSizeInches(pdfPage),
|
return this._parsePageSize(getPageSizeInches(pdfPage),
|
||||||
pagesRotation);
|
pagesRotation);
|
||||||
}),
|
}),
|
||||||
|
this._parseLinearization(info.IsLinearized),
|
||||||
]);
|
]);
|
||||||
}).then(([info, metadata, fileName, fileSize, creationDate, modDate,
|
}).then(([info, metadata, fileName, fileSize, creationDate, modDate,
|
||||||
pageSize]) => {
|
pageSize, isLinearized]) => {
|
||||||
freezeFieldData({
|
freezeFieldData({
|
||||||
'fileName': fileName,
|
'fileName': fileName,
|
||||||
'fileSize': fileSize,
|
'fileSize': fileSize,
|
||||||
@ -145,6 +146,7 @@ class PDFDocumentProperties {
|
|||||||
'version': info.PDFFormatVersion,
|
'version': info.PDFFormatVersion,
|
||||||
'pageCount': this.pdfDocument.numPages,
|
'pageCount': this.pdfDocument.numPages,
|
||||||
'pageSize': pageSize,
|
'pageSize': pageSize,
|
||||||
|
'linearized': isLinearized,
|
||||||
'_currentPageNumber': currentPageNumber,
|
'_currentPageNumber': currentPageNumber,
|
||||||
'_pagesRotation': pagesRotation,
|
'_pagesRotation': pagesRotation,
|
||||||
});
|
});
|
||||||
@ -406,6 +408,15 @@ class PDFDocumentProperties {
|
|||||||
{ date: dateString, time: timeString, },
|
{ date: dateString, time: timeString, },
|
||||||
'{{date}}, {{time}}');
|
'{{date}}, {{time}}');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
_parseLinearization(isLinearized) {
|
||||||
|
return this.l10n.get('document_properties_linearized_' +
|
||||||
|
(isLinearized ? 'yes' : 'no'), null,
|
||||||
|
(isLinearized ? 'Yes' : 'No'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
@ -378,6 +378,10 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<span data-l10n-id="document_properties_page_size">Page Size:</span> <p id="pageSizeField">-</p>
|
<span data-l10n-id="document_properties_page_size">Page Size:</span> <p id="pageSizeField">-</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="separator"></div>
|
||||||
|
<div class="row">
|
||||||
|
<span data-l10n-id="document_properties_linearized">Fast Web View:</span> <p id="linearizedField">-</p>
|
||||||
|
</div>
|
||||||
<div class="buttonRow">
|
<div class="buttonRow">
|
||||||
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -166,6 +166,7 @@ function getViewerConfiguration() {
|
|||||||
'version': document.getElementById('versionField'),
|
'version': document.getElementById('versionField'),
|
||||||
'pageCount': document.getElementById('pageCountField'),
|
'pageCount': document.getElementById('pageCountField'),
|
||||||
'pageSize': document.getElementById('pageSizeField'),
|
'pageSize': document.getElementById('pageSizeField'),
|
||||||
|
'linearized': document.getElementById('linearizedField'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
errorWrapper: {
|
errorWrapper: {
|
||||||
|
Loading…
Reference in New Issue
Block a user