[Okular-devel] PDF Annotations (was Re: Possible GSOC project)

2011-05-02 Thread Jonathan Verner
Hi,

so I've given up on the GSOC project, but I still have some interest 
in saving annotations from Okular :-)

 Given that slowly poppler is starting to support editing, it would be a
 better idea to just continue the work there

Unfortunately, I am not sure I would be up to this task. I will
try to look at it if I have time, though. I agree that a much
better solution is to use poppler, when it has the support.

I didn't have much to do on saturday (well, I did, but ... ;-) )
and hacked up a proof of concept short-term solution based
on the export interface and PoDoFo.  For now it can save basic text 
annotations.

If you think this would be an acceptable _short term_
solution, I would be willing to work on it further. 

There are some problems though:

1) PoDoFo doesn't yet have a stable api so I have included the full
podofo source and I link the popplerGenerator statically to the local
version.

2) PoDoFo uses C++ exceptions, so I have enabled them via -fexceptions.
I am not sure this is acceptable in KDE code.

I am attaching a very rough patch (It isn't cleaned up at all, I will
provide a cleaner one if you think this has some potential).

Have a nice day,

Jonathan


 The general idea - writing back annotations in PDF documents - is okay.
 Given that slowly poppler is starting to support editing, it would be a
 better idea to just continue the work there, instead of read using a
 library and write using another one. For some reasons, see comment #105
 in bug #151614 -- add to that also the fact that you could not have
 real time sync between what you edit and document saving done by the
 user.
 In general, working with a PDF library is a pain, I personally do not
 look forward in having to deal with two at the same time...
 
 Note also we have a system to save modified files (used at the moment
 only for form fields), see the SaveInterface.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 263445] Okular doesn't repaint PDF when I drag an annotation across the page

2011-05-02 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=263445





--- Comment #4 from Albert Astals Cid tsdgeos terra es  2011-05-02 15:07:18 
---
So you did not change your okular version and it went from working to not
working, why is it an okular bug then? It would seem to me that the bug is
somewhere else.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 263445] Okular doesn't repaint PDF when I drag an annotation across the page

2011-05-02 Thread Pieter De Decker
https://bugs.kde.org/show_bug.cgi?id=263445





--- Comment #5 from Pieter De Decker pdedecker gmail com  2011-05-02 15:09:39 
---
I thought that it might be related to KDE's Desktop Effects so I disabled them,
restarted Okular with the same document and I still had issues. Are there any
other common culprits that may have caused this odd behavior?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 272258] New: okular should have rotate left and right shortcuts in the toolbar

2011-05-02 Thread Divan Santana
https://bugs.kde.org/show_bug.cgi?id=272258

   Summary: okular should have rotate left and right shortcuts in
the toolbar
   Product: okular
   Version: unspecified
  Platform: Archlinux Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: wishlist
  Priority: NOR
 Component: general
AssignedTo: okular-devel@kde.org
ReportedBy: di...@s-tainment.co.za


Version:   unspecified (using KDE 4.6.2) 
OS:Linux

open pdf with that rotation is incorrect.
You want to correct the rotation quickly but the icon is not there.

Reproducible: Always

Steps to Reproduce:
You have to go to: view = orientation = rotate left/right
This is not very friendly, and slow/confusing to access for normal users.

Actual Results:  
as above

Expected Results:  
You want to correct the rotation quickly but the icon is not there. The clear
rotate left/right icon is in the toolbar. :)

This is really quick and easy to fix I'm sure and is a nice little useful
improvement to this great program. Hope it can be set by default so distro's
don't have to do this it's one small thing that makes KDE more usable.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 181290] Landscape pdf prints with wrong orientation when choosing landscape in print dialog

2011-05-02 Thread Reartes Guillermo
https://bugs.kde.org/show_bug.cgi?id=181290


Reartes Guillermo rtgui...@gmail.com changed:

   What|Removed |Added

 CC||rtgui...@gmail.com




--- Comment #74 from Reartes Guillermo rtguille gmail com  2011-05-02 
18:42:51 ---
I am using KDE 4.6.2, Fedora 15 beta.

I noticed that okular is unable to detect the orientation
of some (landscape) pdf properly, then i found about this bugreport...



PTST_Landscape01.pdf -- single-page landscape document
PTST_Portrait01.pdf --- single-page portrait document



Okular:

* Print PTST_Landscape01.pdf (default - LANDSCAPE)
  - BAD ( !! a landscape doc in portrait !!)

* Print PTST_Landscape01.pdf (orientation to PORTRAIT)
  - GOOD (! Incorrect behaviour !)

* Print PTST_Portrait01.pdf (default - PORTRAIT)
  - GOOD

* Print PTST_Portrait01.pdf (orientation to LANDSCAPE) 
  - BAD (Correct behaviour)

LibreOffice

* Print PTST_Landscape01.pdf (default - LANDSCAPE) 
  - GOOD
* Print PTST_Landscape01.pdf (orientation to PORTRAIT) 
  - BAD (Correct behaviour)

* Print PTST_Portrait01.pdf (default - PORTRAIT) 
  - GOOD
* Print PTST_Portrait01.pdf (orientation to LANDSCAPE) 
  - BAD (Correct behaviour)

I just configured LibreOffice-Writer as the default pdf 
application as a workaround.

 My Print Task Setting -- Orientation -- Automatic
I tried with it, but when i changed the default 'auto', the option
'auto' just disappeared and cannot be re-selected, so i left it 
in 'portrait'.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 272258] okular should have rotate left and right shortcuts in the toolbar

2011-05-02 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=272258


Albert Astals Cid tsdg...@terra.es changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WONTFIX




--- Comment #1 from Albert Astals Cid tsdgeos terra es  2011-05-03 03:41:51 
---
Sorry, this won't happen, the toolbar is already crowded as it is so we can not
add more icons. Also badly rotated documents should be the exception, not the
rule, if you get lots of them complain to the creator ;-)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [Bug 272258] okular should have rotate left and right shortcuts in the toolbar

2011-05-02 Thread Divan Santana
https://bugs.kde.org/show_bug.cgi?id=272258





--- Comment #2 from Divan Santana divan s-tainment co za  2011-05-03 06:59:04 
---
(In reply to comment #1)
 Sorry, this won't happen, the toolbar is already crowded as it is so we can 
 not
 add more icons. 

Mine is less than a third of the width of my screen. But I have unusually high
res...

Also badly rotated documents should be the exception, not the
 rule, if you get lots of them complain to the creator ;-)

Alright, it was worth a try, and I suppose most PDF etc viewers don't have it
either.

Thanks

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel