• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

SIze of every page

Contributor ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

Hi everyone!

I have a PDF with several pages each, is it possible to get the weight of each page from Acrobat Pro?

Example attached

TOPICS
How to , PDF

Views

597

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 20, 2024 Feb 20, 2024

That's not possible, at least not directly. You will need to extract each page as its own file to examine that, and even then it won't mean that the sum of these files will match the size of the combined file.

Votes

Translate

Translate
Community Expert ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

You must use this Preference option:

 

Capture_2402192304.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

The size in MB, not in mm

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

That's not possible, at least not directly. You will need to extract each page as its own file to examine that, and even then it won't mean that the sum of these files will match the size of the combined file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

LATEST

The sum of the weight of the pages will necessarily be greater than the weight of the original document because certain elements such as embedded fonts, headers, footers and all repetitive elements are only stored once in the document.
When the document is split, each page must incorporate all these elements.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

Each page in a PDF file has multiple boxes that define its size, but the most common one is the Crop box. To list the width of all of these boxes in your file you can run this code:

 

for (var p=0; p<this.numPages; p++) {
	var pageBox = this.getPageBox("Crop", p);
	var pageWidth = pageBox[2]-pageBox[0];
	console.println("Page " + (p+1) + " Width:" + pageWidth);
}

 

Note that the output is in PostScript Points. You can divide it by 72 to get inches, for example.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

Where can i run this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

The JS Console, but it will not give you the information you're looking for. See above.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines