Skip to content

again with the PDF interfaces#319

Merged
ianardee merged 4 commits intorelease/5.0.0-alpha1from
pdf-again
Apr 29, 2026
Merged

again with the PDF interfaces#319
ianardee merged 4 commits intorelease/5.0.0-alpha1from
pdf-again

Conversation

@ianardee
Copy link
Copy Markdown
Collaborator

@ianardee ianardee commented Apr 28, 2026

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

@ianardee ianardee force-pushed the pdf-again branch 2 times, most recently from 44f1249 to 1500d02 Compare April 29, 2026 08:51
@ianardee ianardee marked this pull request as ready for review April 29, 2026 08:56
Copy link
Copy Markdown
Collaborator

@sebastianMindee sebastianMindee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix PDF naming in methods

Comment on lines +86 to +89
if (!this.isPDF()) {
return 1;
}
return getPdfOperation().getNumberOfPages(this.file);
return getPdfInputOperator().getPageCount(this.file);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change the case in isPDF but not other Pdf names such as getPdfInputOperator?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oversight, thanks

Comment on lines +114 to +130
public void compress(
public LocalInputSource compress(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily objecting, but compress (or compress! in ruby) is an in-place operation everywhere else. The reasoning was that if the user wants to reduce the size of his files, it stands to reason to me that he wants to discard the larger input source in the process.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in place, in-memory. Only returning the object to allow chaining, but this is probably not a great idea, reverting.

@ianardee ianardee force-pushed the pdf-again branch 2 times, most recently from 808d07e to fff0fb7 Compare April 29, 2026 09:29
@ianardee ianardee merged commit 4f74a63 into release/5.0.0-alpha1 Apr 29, 2026
11 checks passed
@ianardee ianardee deleted the pdf-again branch April 29, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants