Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excel to pdf 纸张大小不一致 #56

Open
L-HH opened this issue Feb 25, 2021 · 1 comment
Open

excel to pdf 纸张大小不一致 #56

L-HH opened this issue Feb 25, 2021 · 1 comment

Comments

@L-HH
Copy link

L-HH commented Feb 25, 2021

excel设置纸张大小21cm*9.7cm 生成pdf纸张是按A4大小的,如果设置了pdfSaveOptions.setOnePagePerSheet(true),纸张会按打印打印预览的大小,这个如何保存生成的pdf纸张和原excel一致

@amjad-sahi
Copy link
Collaborator

请注意,将OnePagePerSheet属性设置为true时,将不考虑现有/先前的纸张尺寸。 简而言之,如果要保持纸张尺寸设置一致,请不要使用OnePagePerSheet选项。

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

No branches or pull requests

2 participants