Created attachment 192028 [details] Document with paper tray set The paper tray is ignored when reading rtf or docx documenents. To reproduce create a document in Word and define the paper source in the page setup. Save the document as rtf or docx and load it in LO. The page style dialog should show the same tray but it doesn't. Please note: Paper tray values differ between printers. They can only be applied if the printers have the same tray identifiers. They will probably only work on Windows.
Do you have active Menu/Tools/Options/Load and save/General - Load printer settings with document?
Created attachment 192061 [details] Another reproducer RTF: automatic tray On my machine, there are two non-default options with my printer, one of these is the automatic setting.
Created attachment 192062 [details] RTF reproducer: main tray
Created attachment 192063 [details] The automatic setting in Word 2016 and Writer 7.6
Created attachment 192064 [details] The main tray setting in Word 2016 and Writer 7.6
Created attachment 192066 [details] The automatic setting example in docx format
Created attachment 192067 [details] The main tray setting example in docx format
Confirming. With the proposed patch at https://gerrit.libreoffice.org/c/core/+/162236 the settings are imported correctly from RTF, but still not from DOCX. Another problem is that Word supports two tray settings for the first page and all the others, while Writer supports only one.
Oliver Specht committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e6f75eb50bc5d1ebccda0c0f80a7b353d991106e tdf#159254 import paper bin/paper source from rtf/docx files It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Oliver Specht committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/c40fc3bc88f92baed2bc14a7667383078c77915d tdf#159254 import paper bin/paper source from rtf/docx files It will be available in 24.2.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Let's say this is mostly fixed, followup bugs are filed for remaining issues.
Oliver Specht committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/feb08063c47e303bcf399ac90354fbcca1262997 tdf#159254 fix import of printer tray in docx It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.