You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XWIKI-21763: Disable the server-side image resizing while exporting to PDF
* Using a workaround until we add support for temporarily overwrite properties from a configuration source.
* Small refactoring of PDFExportJob to reduce class-fan-out complexity
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-api/src/main/java/org/xwiki/export/pdf/internal/job/PDFExportJob.java
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-test/xwiki-platform-export-pdf-test-content/src/main/resources/PDFExportIT/Parent/Child/WebHome.xml
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-test/xwiki-platform-export-pdf-test-docker/pom.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,13 @@
69
69
<version>${project.version}</version>
70
70
<scope>runtime</scope>
71
71
</dependency>
72
+
<!-- Needed to verify that image server-side resize is disabled while exporting to PDF. -->
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-test/xwiki-platform-export-pdf-test-docker/src/test/it/org/xwiki/export/pdf/test/ui/AllIT.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,8 @@
46
46
// Starting or stopping the Office server requires PR (for the current user, on the main wiki reference).
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-test/xwiki-platform-export-pdf-test-docker/src/test/it/org/xwiki/export/pdf/test/ui/PDFExportIT.java
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,8 @@
81
81
// Starting or stopping the Office server requires PR (for the current user, on the main wiki reference).
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-ui/src/main/resources/XWiki/PDFExport/Sheet.xml
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -822,6 +822,38 @@ require([
822
822
}).wrap("<span></span>");
823
823
};
824
824
825
+
/**
826
+
* Removes the image size (width and height) from the image URL query string in order to prevent the server-side
827
+
* resize of the image, thus allowing the full size image to be included in the generated PDF.
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-ui/src/main/resources/XWiki/PDFExport/Translations.ko.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -110,4 +110,4 @@ XWiki.PDFExport.ConfigurationClass_maxContentSize.hint=단일 PDF 내보내기
110
110
XWiki.PDFExport.ConfigurationClass_replaceFOP=FOP 교체
111
111
XWiki.PDFExport.ConfigurationClass_replaceFOP.hint=Apache Formatting Objects Processor(FOP)를 기반으로 이전 PDF 내보내기를 대체합니다.
0 commit comments