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

Implement "Save page" #77

Closed
jargony opened this issue Dec 11, 2018 · 14 comments · Fixed by #1134
Closed

Implement "Save page" #77

jargony opened this issue Dec 11, 2018 · 14 comments · Fixed by #1134
Assignees

Comments

@jargony
Copy link

jargony commented Dec 11, 2018

It is not possible to save pages in Kiwix now. When you click "Save page" nothing happens.

@kelson42
Copy link
Collaborator

I confirm, no filepicker is even open.

@kelson42 kelson42 changed the title Save page doesn't work Implement "Save page" Sep 10, 2019
@kelson42
Copy link
Collaborator

kelson42 commented Sep 24, 2019

The problem seems a bit more complex to do that it should. We should just mask the menu item for now.

@stale
Copy link

stale bot commented Nov 27, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Nov 27, 2019
@stale stale bot removed the stale label Jun 15, 2024
@ShaopengLin
Copy link
Collaborator

So from what I have tried, sources with "zim://" and surprisingly "https://" and local files are all not downloaded. I have tried creating Zim files with different types of resources and the behavior is rather inconsistent... Only the QWebEngineViews opened with a real online website seems to work ok-ish.

I believe we will need to do our own parsing of the Html and downloading. We can download all the resources needed in the parsed HTML and then, replace the "zim://" paths with the download path in the final HTML. I confirm we can download those resources in Qt.

@veloman-yunkan @kelson42 What are your opinions on this?

@kelson42
Copy link
Collaborator

@ShaopengLin From your comment it seems there is a big misunderstanding (because the issue is so badly underspecified). The goal of this issue is to export an article to a PDF file. There should be a builtin tool to do that.

@ShaopengLin
Copy link
Collaborator

I thought we already have the print feature? It seems to work fine.

Screenshot from 2024-06-16 01-27-24

@kelson42
Copy link
Collaborator

@ShaopengLin It is more a usability issue. It's not straight to click on print tomsave a file. But yes, this would be the same behaviour as printing to a PDF.

@ShaopengLin
Copy link
Collaborator

Just to clarify, we want a more straight-forward "Save As .." action that, prints the article as PDF to the user's selected location.

@kelson42
Copy link
Collaborator

@ShaopengLin Yes, "Save page..." should open a filepicker dialogbox straight and propose to save the page. The filename should come from the title of the page. Default location should be the same as the last time (so location should be remembered) and "Documents" default directory. This shoudl work with HTML content, if this is an other content which is displayed then we should save the file straight.

@ShaopengLin
Copy link
Collaborator

@kelson42 I am not aware that we have other content display formats.Do you mean like Zims that have videos? Also by saving the file straight, do you mean the zim file?

@kelson42
Copy link
Collaborator

@kelson42 I am not aware that we have other content display formats.Do you mean like Zims that have videos? Also by saving the file straight, do you mean the zim file?

You can perfectly open a PNG image (or a video file) directly in a tab.

@ShaopengLin
Copy link
Collaborator

This shoudl work with HTML content, if this is an other content which is displayed then we should save the file straight.

I believe I would need some clarification on what "an other content" means, as well as what "saving the file straight" implies. We already have Save Meida when user open videos in fullscreen so I believe you didn't mean that.

@kelson42
Copy link
Collaborator

kelson42 commented Jun 16, 2024

@ShaopengLin I have explained everything earlier, I don't know what to say more. Please implement what is clear and ask precise question otherwise.

@kelson42
Copy link
Collaborator

See kiwix/kiwix-apple#814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: DONE
Development

Successfully merging a pull request may close this issue.

3 participants