Skip to content

Add LibreOffice-specific conversion options#72

Merged
Jaben merged 3 commits intodevelopfrom
feature/libre-office-options
Mar 29, 2026
Merged

Add LibreOffice-specific conversion options#72
Jaben merged 3 commits intodevelopfrom
feature/libre-office-options

Conversation

@Jaben
Copy link
Copy Markdown
Member

@Jaben Jaben commented Mar 28, 2026

Summary

  • Introduce LibreOfficeOptions facet with ~25 fields: layout, image compression, notes/slides, links, document outline, form fields, native watermark, and source file password
  • Add ImageQuality (1-100) and ImageResolution (75/150/300/600/1200 DPI) DDD value objects
  • Wire into MergeOfficeRequest and expose via SetLibreOfficeOptions on MergeOfficeBuilder

Test plan

  • 27 unit tests covering value objects, builder API, and serialization
  • 1 integration test against local Gotenberg 8 with real .docx conversion
  • LibreOfficeOptions example console app added
  • README section added

Jaben added 2 commits March 28, 2026 11:59
Introduce LibreOfficeOptions facet with ~25 fields covering layout,
image compression, notes/slides export, links, document outline,
form fields, native watermark, and source file password.

Add ImageQuality (1-100) and ImageResolution (75/150/300/600/1200 DPI)
value objects to enforce valid ranges. Wire into MergeOfficeRequest
and expose via SetLibreOfficeOptions on MergeOfficeBuilder.
Add console example demonstrating LibreOffice-specific options including
image compression, bookmarks, form fields, and native watermarks.
Add corresponding README section.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 28, 2026

Warning

Rate limit exceeded

@Jaben has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 42 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 42 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 551c5744-4983-4936-8d04-ba692526662b

📥 Commits

Reviewing files that changed from the base of the PR and between 09b6c02 and 1f852d5.

📒 Files selected for processing (11)
  • README.md
  • examples/LibreOfficeOptions/LibreOfficeOptions.csproj
  • examples/LibreOfficeOptions/Program.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/Builders/Faceted/LibreOfficeOptionsBuilder.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/Builders/MergeOfficeBuilder.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/Requests/Facets/LibreOfficeOptions.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/Requests/MergeOfficeRequest.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/ValueObjects/ImageQuality.cs
  • src/Gotenberg.Sharp.Api.Client/Domain/ValueObjects/ImageResolution.cs
  • src/Gotenberg.Sharp.Api.Client/Infrastructure/Constants.cs
  • test/GotenbergSharpClient.Tests/LibreOfficeOptionsTests.cs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/libre-office-options

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Jaben
Copy link
Copy Markdown
Member Author

Jaben commented Mar 29, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 29, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@Jaben Jaben merged commit c9521c8 into develop Mar 29, 2026
3 checks passed
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.

1 participant