mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-09 02:08:50 +01:00
This commit is contained in:
parent
267621806a
commit
8fe17e8d0d
1 changed files with 5 additions and 7 deletions
|
|
@ -64,9 +64,7 @@ export const saveExport = (option: { type: string, id: string }) => {
|
|||
const renderPDF = (id: string) => {
|
||||
const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_EXPORTPDF) || JSON.stringify({
|
||||
landscape: false,
|
||||
margins: {
|
||||
marginType: "0",
|
||||
},
|
||||
marginType: "0",
|
||||
scale: 1,
|
||||
pageSize: "A4",
|
||||
removeAssets: true,
|
||||
|
|
@ -160,9 +158,9 @@ const renderPDF = (id: string) => {
|
|||
</div>
|
||||
<span class="fn__hr"></span>
|
||||
<select class="b3-select" id="marginsType">
|
||||
<option ${localData.margins.marginType === "0" ? "selected" : ""} value="0">Default</option>
|
||||
<option ${localData.margins.marginType === "1" ? "selected" : ""} value="1">None</option>
|
||||
<option ${localData.margins.marginType === "2" ? "selected" : ""} value="2">Minimal</option>
|
||||
<option ${localData.marginType === "0" ? "selected" : ""} value="0">Default</option>
|
||||
<option ${localData.marginType === "1" ? "selected" : ""} value="1">None</option>
|
||||
<option ${localData.marginType === "2" ? "selected" : ""} value="2">Minimal</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="b3-label">
|
||||
|
|
@ -349,8 +347,8 @@ const renderPDF = (id: string) => {
|
|||
pdfOptions:{
|
||||
printBackground: true,
|
||||
landscape: actionElement.querySelector("#landscape").checked,
|
||||
marginType: actionElement.querySelector("#marginsType").value,
|
||||
margins: {
|
||||
marginType: actionElement.querySelector("#marginsType").value,
|
||||
top: pdfTop * 0.6,
|
||||
bottom: pdfTop * 0.6,
|
||||
left: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue