Crop to A4 isn't correctly calculated

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

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

osiris
User
Posts: 3
Joined: Fri Oct 26, 2018 8:56 am

Crop to A4 isn't correctly calculated

Post by osiris »

Hi

I am trying to crop an SRA4 PDF to standard A4 for post processing and printing, with X-Change Editor. The cropped PDF page, however, is being shifted half an inch right and up when prepared for printing. When examining the PDF structure it is clear the Bleed, Media, Trim, Art and Crop boxes are being incorrectly (mis)calculated by X-Change Editor with a horizontal and vertical 'shift' being included in the positioning attributes e.g. /CropBox [29.503723 29.50412 624.779297 871.393921]. (see 'miscalc' image attachment).

However, when using Adobe Acrobat Pro to Crop the page, the resized boxes are calculated correctly e.g. e.g. /CropBox [0 0 595.276 841.89] (which is A4 size in points). (see image 'Correct_Adobe').

I am using the CROP method 'Manual Margin Control' applied to the Crop Box (and all other Boxes), and have also tried all variations . I am removing the Content, and tried selecting (and not selecting) adjusting the size of the media box to the Crop Box..... All produce the same results.

Any idea where, and why it is going wrong?

TIA

Andrew
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Crop to A4 isn't correctly calculated

Post by Tracker Supp-Stefan »

Hello Andrew,

Can we get a copy of the original file and the cropped result that you created with both our Editor and Adobe so that we can run some tests here at our end?

Regards,
Stefan
osiris
User
Posts: 3
Joined: Fri Oct 26, 2018 8:56 am

Re: Crop to A4 isn't correctly calculated

Post by osiris »

Tracker Supp-Stefan wrote:Hello Andrew,

Can we get a copy of the original file and the cropped result that you created with both our Editor and Adobe so that we can run some tests here at our end?

Regards,
Stefan

He Stefan

See attached

Prefixed as :
ORIGINAL - The SRA4 Version
ADOBE - Converted by ADOBE Pro
X-CHANGE - The Converted from X-CHANGE Editor.
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Crop to A4 isn't correctly calculated

Post by Tracker Supp-Stefan »

Hello osiris,

Thanks for the sample files!
When you use the "Crop" tool in the Editor - it will change the crop mask on the page, and can also remove any content outside of the crop area - but the original page dimensions will not be affected:
crop_differs_from_resize.png
If you however use the Document -> Resize Pages (either before or after the crop. After might be needed if the cropped area is not symmetric to the center) - then the actual page will be resized to the new dimensions.

Please see the attached PDF which I created using the "Resize" feature in the Editor.

Regards,
Stefan
You do not have the required permissions to view the files attached to this post.
osiris
User
Posts: 3
Joined: Fri Oct 26, 2018 8:56 am

Re: Crop to A4 isn't correctly calculated

Post by osiris »

Hi Stefan

The PDF is still incorrect - it is still showing the Offset dimensions which causes the PDF to be re positioned when merged and printed. (see attached dump of the PDF you sent compared to the ADOBE version of the dump also attached).

Cheers

Andy
Test123_Attributes.png
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Crop to A4 isn't correctly calculated

Post by Tracker Supp-Stefan »

Hello osiris,

I've asked a colleague in the Dev team to take a look and we will post back here as soon as there are any further news!

Regards,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Crop to A4 isn't correctly calculated

Post by Ivan - Tracker Software »

The Editor crops the page absolutely correctly, at least in conformance with the PDF Specification.
Page boxes do not have to have an origin (0, 0), and all applications should handle such boxes in a proper way.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.