[Bug 33288]

2015-10-13 Thread Marek Kašík
I went through the patch written by me and unfortunately I can not make it so that it returns the same result as before. I've separated axes in which it searches for immediate up/down/left/right neighbours, sorted them and found the neighbours by single pass (+ number of possible neighbour candidat

[Bug 1242678]

2015-01-08 Thread Marek Kašík
Created attachment 111925 Rotate documents correctly I've prepared a simple patch which also solves this problem. It just rotates what we get from ghostscript at pixel level. It takes more time than rendering it directly to the format we want but it works. I'm just not sure about slice rendering

[Bug 1242678]

2014-12-25 Thread Marek Kašík
Hi, the problem we are trying to fix here was introduced by this ghostscript commit: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=7a8612112478196d8f047a556fdbb15d17aec7d0 (Add PSFitPage and FitPage options to allow fitting PS files to a page). It is present in ghostscript since 9.08.

[Bug 1242678]

2014-12-25 Thread Marek Kašík
Created attachment 111047 erase page before its drawing This patch is simplified version of the one with setpagedevice, it just erase the page instead of calling whole setpagedevice. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evi

[Bug 1348384] Re: evince and okular do not render eps files correctly resulting in a black background

2014-12-15 Thread Marek Kašík
The patch is a simplified version of the patch https://bugs.freedesktop.org/attachment.cgi?id=105606. I still can not reproduce the problem mentioned by Carlos and my previous patch was reverted so I don't know whether it will be included there at all. -- You received this bug notification becaus

[Bug 1242678]

2014-12-11 Thread Marek Kašík
(In reply to Carlos Garcia Campos from comment #34) > Still doesn't work here, it seems to rotate the first page only of a > multipage document. I can not reproduce this. Could you point me to a document which triggers this problem? -- You received this bug notification because you are a member

[Bug 299725]

2014-12-11 Thread Marek Kašík
I'm closing this since it seems to be already fixed (by http://cgit.freedesktop.org/poppler/poppler/commit/?id=f3a1b765bd6a58d327a80feedbe30e1c0792076e and http://cgit.freedesktop.org/poppler/poppler/commit/?id=5056e33e01ce0f7db1a5401b7b38d30e84eedf69). -- You received this bug notification becau

[Bug 1348384] Re: evince and okular do not render eps files correctly resulting in a black background

2014-12-09 Thread Marek Kašík
This patch fixes the problem for me. But I can not reproduce the problem mentioned in https://bugs.freedesktop.org/show_bug.cgi?id=76450#c34 so there are still some problems probably. ** Bug watch added: freedesktop.org Bugzilla #76450 https://bugs.freedesktop.org/show_bug.cgi?id=76450 ** Patc

[Bug 1242678]

2014-09-04 Thread Marek Kašík
(In reply to comment #31) > Created attachment 105606 [details] [review] > send setpagedevice > > I've just bisected where the behaviour changes. I found that placing a > setpagedevice to the place of where Orientation was originally set helps. > But I still don't know why. Maybe the page needs s

[Bug 1242678]

2014-09-04 Thread Marek Kašík
Created attachment 105607 minimal version of the reproducer -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1242678 Title: evince cannot render some EPS files To manage notification

[Bug 1242678]

2014-09-04 Thread Marek Kašík
Created attachment 105606 send setpagedevice I've just bisected where the behaviour changes. I found that placing a setpagedevice to the place of where Orientation was originally set helps. But I still don't know why. -- You received this bug notification because you are a member of Ubuntu Deskt

[Bug 1242678]

2014-06-25 Thread Marek Kašík
(In reply to comment #20) > (In reply to comment #19) > > Thanks Marek! Do you still plan to look at the evince side as well (since > > the rotation seems to still be wrong when using it, as mentioned in previous > > comments) > > Hi Sebastien, > > thank you for reminding me this. I'll look at th

[Bug 1242678]

2014-06-25 Thread Marek Kašík
Created attachment 101589 Change direction of rotation The promised patch. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1242678 Title: evince cannot render some EPS files To man

[Bug 1242678]

2014-06-25 Thread Marek Kašík
(In reply to comment #23) > (In reply to comment #22) > > (In reply to comment #20) > > > (In reply to comment #19) > > > > Thanks Marek! Do you still plan to look at the evince side as well > > > > (since > > > > the rotation seems to still be wrong when using it, as mentioned in > > > > previou

[Bug 1242678]

2014-06-18 Thread Marek Kašík
(In reply to comment #19) > Thanks Marek! Do you still plan to look at the evince side as well (since > the rotation seems to still be wrong when using it, as mentioned in previous > comments) Hi Sebastien, thank you for reminding me this. I'll look at that but not now since I have several tasks

[Bug 1242678]

2014-06-11 Thread Marek Kašík
Created attachment 100723 Rotate documents correctly Hi, I'm sorry for my late response, I was super busy with something else. (In reply to comment #15) > Comment on attachment 99331 [details] [review] > Rotate documents correctly > > Review of attachment 99331 [details] [review]: > ---

[Bug 1242678]

2014-05-21 Thread Marek Kašík
Created attachment 99331 Rotate documents correctly (In reply to comment #13) > (In reply to comment #12) > > Yes, you can replace setpagedevice with pop. It is not clear to me how your > > patch is doing this. Something like "/setpagedevice { pop } bind def" should > > work. Thank you. > It see

[Bug 1242678]

2014-05-21 Thread Marek Kašík
Created attachment 99156 Rotate documents correctly This patch solves the problem with the problematic PostScript file for me but it is kind of a hack. It replaces occurrences of "setpagedevice" with "pop " so that its parameters don't influence the rendering to the "display" device. I ha

[Bug 1242678]

2014-05-15 Thread Marek Kašík
Created attachment 99100 Rotate documents correctly Thank you for the review. (In reply to comment #7) > Comment on attachment 96165 [details] [review] > Rotate documents correctly > > Review of attachment 96165 [details] [review]: > --

[Bug 1242678]

2014-05-15 Thread Marek Kašík
Created attachment 99101 The problematic PostScript file. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1242678 Title: evince cannot render some EPS files To manage notifications

[Bug 1242678]

2014-05-15 Thread Marek Kašík
(In reply to comment #5) > @Marek, do you plan to follow up with the evince team about that rotation > issue? > It seems like both libspectre and evince need to be updated together to give > a correct result there Sure, I can continue on this in evince too. I'll try look for a solution. -- You

[Bug 1242678]

2014-05-15 Thread Marek Kašík
(In reply to comment #1) > The issue reported there seems to be also what makes evince fails to render > some eps files on e.g recent Ubuntu versions > > That has been reported on > https://bugzilla.gnome.org/show_bug.cgi?id=710957 > https://bugs.launchpad.net/libspectre/+bug/1242678 > http://bugs

[Bug 33288]

2014-04-14 Thread Marek Kašík
Created attachment 97356 Improve efficiency of searching for tables (In reply to comment #68) > Created attachment 40308 [details] [review] > optimization of search for tables This is an updated version of the patch. It needs Brian's patch to be already applied. (see #77087 for additional info)

[Bug 245620]

2014-01-28 Thread Marek Kašík
Created attachment 92929 reproducer showing "Invalid rectangle" error when selecting text -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. https://bugs.launchpad.net/bugs/245620 Title: evince and selection on rotated text To manag

[Bug 245620]

2014-01-28 Thread Marek Kašík
Created attachment 92928 Respect orientation when selecting words Attached is a patch which improves selection of words when PDF is rotated by multiples of 90°. It sets correct bounds on various visit*() functions. The patch doesn't solve all problems related to this. There are still problems wit

[Bug 33288]

2012-09-10 Thread Marek Kašík
Created attachment 40308 optimization of search for tables Hi, this patch improves efficiency of searching for blocks which belong to a table. In the worst case it is still quadratic but it should be O(n*sqrt(n)) in average case. It creates a list of all y coordinates and then sort it. After th

[Bug 33288]

2012-09-10 Thread Marek Kašík
There are also 2 nested "for" cycles in the block preceded by this comment: /* set extended bounding boxes of all other blocks * so that they extend in x without hitting neighbours */ I'm working on an optimization of it. Marek -- You received this bug notification because you are a