-1

When the “whole sheet export” option is enabled during the PDF export process in Calc, the hyperlinks in the exported PDF do not preserve their original URLs and instead show local file paths.

References:

https://ask.libreoffice.org/t/web-hyperlinks-not-preserved-after-export-to-pdf/96762 https://bugs.documentfoundation.org/show_bug.cgi?id=157780

Idea:

I’m considering using the UNO API to implement a custom solution that would:

Iterate through each sheet in a Calc document.

For each sheet, calculate the total width and height required to fit the content within one page, considering all columns and rows.

Generate a custom paper size based on these dimensions for each sheet.

Export to PDF with the custom paper size, ensuring that the “whole sheet export” option is not used, thus preserving the hyperlinks.

Question:

Is this approach feasible using the UNO API?

1 Answer 1

0

this code is working for now: https://cuipengfei-me.translate.goog/blog/2024/07/28/libre-jod-single-page-excel/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp

could be improved later

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.