Fulll pdf path is saved regardless of mode. #3189
Comments
|
Hey, how do i see the unzipped version ? |
|
Just rename the |
|
If you use " edit xournal files (see https://vi.stackexchange.com/a/10390/854)
augroup gzip_local2
autocmd!
autocmd BufReadPre,FileReadPre *.xopp setlocal bin
autocmd BufReadPost,FileReadPost *.xopp call gzip#read("gzip -dn -S .xopp")
autocmd BufWritePost,FileWritePost *.xopp call gzip#write("gzip -S .xopp")
autocmd FileAppendPre *.xopp call gzip#appre("gzip -dn -S .xopp")
autocmd FileAppendPost *.xopp call gzip#write("gzip -S .xopp")
augroup END...will let you directly edit |
|
Thanks, i duplicated the bug, So like which part of the codebase should i start exploring to find more abt the bug, will i get it in src/pdf? |
|
@ashwincreates You will have to look at the |
Affects versions :
Describe the bug
The pdf background filename is saved in absolute mode, regardless of the mode it has been originally saved with previously. So if a document is created in attach mode, saved, reopened and saved again, the path to the pdf will now be in absolute mode.
To Reproduce
Steps to reproduce the behavior:
test.pdfwith "Annotate pdf" and check the "attach to journal" checkbox on the bottom left of the file dialogtest.xopp. Observe that atest.xopp.bg.pdffile is created in the same directory and the (ungzipped) xopp-file contains a tagas expected
3. Open the xopp-file from the file manager or with "Open File"
4. Edit and save again
5. Observe that the (unzipped) xopp-file now contains a tag
instead of the attach mode
Expected behavior
A document that has been created in attach mode should remain in attach mode when reopend and saved again
Additional context
There is a related issue #2736, that relative pdf background filenames can be opened, but when they are saved, the relative path gets replaced by the full absolute path.
The text was updated successfully, but these errors were encountered: