Entering certain high values as margins or gaps in the Merge Pages dialog results in strange behavior

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1719
Joined: Sat Sep 11, 2021 5:04 am

Entering certain high values as margins or gaps in the Merge Pages dialog results in strange behavior

Post by rakunavi »

Hello all,

I have noticed a strange behavior with the Merge Pages feature when a certain higher value is specified in the margins or gaps. The sample file has a page size of 500 pt x 500 pt and consists of a total of 50 pages.

  • sample.pdf
In the first half of the video, the file is merged once with the following settings.

  • Pages Type : Calculate
  • Left / Right / Top / Bottom margins : 100 pt
  • Type: Multiple Pages per Sheet
  • Pages per Sheet : 4 (2/2)
  • Horizontal / Vertical gaps : 100 pt
After merging, the width and height will be as follows.

  • Width:
    100 (Left margin) + 500 + 100 (Horizontal gap) + 500 + 100 (Right margin) = 1300
  • Height:
    100 (Top margin) + 500 + 100 (Vertical gap) + 500 + 100 (Bottom margin) = 1300
Then, after undoing the Merge Pages comand, open the Merge Pages dialog again, and the dialog will show the default settings from the first merge. If you press OK and merge again with the same settings, you will get the same result as when you first merged. Everything is as intended.

Next, in the second half of the video, the following settings are used to merge once.

  • Pages Type : Calculate
  • Left / Right / Top / Bottom margins : 1000 pt
  • Type: Multiple Pages per Sheet
  • Pages per Sheet : 4 (2/2)
  • Horizontal / Vertical gaps : 1000 pt
  • figure1.png
After merging, the width and height will be as follows.

  • Width:
    1000 (Left margin) + 500 + 1000 (Horizontal gap) + 500 + 1000 (Right margin) = 4000
  • Height:
    1000 (Top margin) + 500 + 1000 (Vertical gap) + 500 + 1000 (Bottom margin) = 4000
If you then open the Merge Pages dialog after undoing the Merge Pages command, unlike the previous step, the settings from the first merge are not reflected by default. As shown in the figure below, each margin and each gap will have the following different value.

  • Left / Right margins : 609 pt
  • Top / Bottom margins : 789 pt
  • Horizontal gap : 609 pt
  • Vertical gap : 789 pt
  • figure2.png
If you press OK without changing any settings, you will get the same result as when you first merged, for some reason. I don't know what limitation the values 609 pt and 789 pt are based on. I also find it odd that if I run the command with those values, I actually get a result based on 1000 pt.

Both margin and gap are strange values, but if the OK button is pressed in this state, the value should be reflected and the result should be as follows.

  • Width:
    609 (Left margin) + 500 + 609 (Horizontal gap) + 500 + 609 (Right margin) = 2827
  • Height:
    789 (Top margin) + 500 + 789 (Vertical gap) + 500 + 789 (Bottom margin) = 3367
However, as you can see in the video, that did not actually happen and the result is based on 1000 pt. This is probably due to some problem with the Merge Pages feature, including the fact that the wrong value was entered in the first place.

  • Animation.gif
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.6.0 build 396
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.4349
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11221
Joined: Wed Jan 03, 2018 6:52 pm

Re: Entering certain high values as margins or gaps in the Merge Pages dialog results in strange behavior

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you for the report, This does appear to only be a display error, given that 609*789 coincides with Letter sized paper, I expect this is a case of loading the wrong display value accidentally. I have passed this along to the dev team for review.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
rakunavi
User
Posts: 1719
Joined: Sat Sep 11, 2021 5:04 am

Re: Entering certain high values as margins or gaps in the Merge Pages dialog results in strange behavior

Post by rakunavi »

Hello Daniel, thank you for taking time out of your busy schedule.

I am surprised that you noticed that the mysterious value (609 x 789 pt) had something to do with the paper size. :o
I had asked the Copilot beforehand, but AI could not provide an answer.
It is indeed 3 pt smaller from Letter size (612 x 792 pt) by 3 pt each in height and width.

Incidentally, in a Japanese PC environment, these values are (592.28 x 838.89 pt). This value is 3 pt smaller than the A4 size (595.28 x 841.89 pt) by 3 pt each. Since the default paper size seems to vary depending on the language environment, this value will also change if it differs.

  • figure.png
So, I can conclude that the margin and gap values we are talking about are based on the default paper size that appears in the "Create New Document" dialog when the PDF-XChange Editor settings are reset, and that the values are further reduced from there by 3pt each in height and width. Thanks to your point of view, the mystery is solved. Thank you.

Please give my best regards to developers.

Best regards,
rakunavi
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11221
Joined: Wed Jan 03, 2018 6:52 pm

Re: Entering certain high values as margins or gaps in the Merge Pages dialog results in strange behavior

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you checking on that, The devs are already looking into it now, but I will make a note that you have confirmed there is indeed a relation to the default paper size in various environments.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com