Bug 103568

Summary: ability to save the .pdf file in other formats(PNG,HTML)
Product: [Applications] okular Reporter: Becheru Petru-Ioan <becheru.petru.ioan>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist CC: aryanarora.w1, bradh, esigra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Becheru Petru-Ioan 2005-04-09 19:45:28 UTC
Version:           0.3.2 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.10-1-k7

I want to be able to save the pdf file viewed in Kpdf(part) to another type of files(in the option "Save as" or by a new option "Save in other format"):
- png : (similar to Print Screen or Print Window) the (color)image of the pdf file should be saved current zoom
-HTML :-" the test should be text(maybe with CSS) and the images png
      - if the pdf has more than 1 page the html should be with <frame>s : 1 frame for the index and the other frame for the pages
Comment 1 Becheru Petru-Ioan 2005-06-16 20:09:52 UTC
I have a new export format text + images that will save the file.pdf as a text file.txt file and a couple of images (file01.png ..)

instead of text "Save in other format" a sub menu at "Save as" should appear with the folowing menu items:
- PDF (this will save file unchanged; )
- HTML
- PNG
- text + images
Comment 2 Brad Hards 2008-11-30 03:27:14 UTC
This will not be implemented in KPDF, but is potentially a valid wishlist item for Okular.
Comment 3 Aryan Arora 2023-03-14 14:08:17 UTC
@aacid I was hoping to work on the PNG export part of the issue.

For now, exporting as png will export the current page as a png. Later that can be extended to support range of pages and resolution.

One of ways of creating an image from pdf is by using Qt's API.
QPixmap QWidget::grab(const QRect &rectangle = QRect(QPoint(0, 0), QSize(-1, -1)))

Should I continue?