From: Reiner M. <re...@mi...> - 2010-11-09 13:29:15
|
Hello just installed pdfedit-4.3-1.13 (SuSE 11.3) and tried to edit a document which I had relinearized before. It looks that I can't remove a page (object tree). All I get is a > removePageWithConditionalRefresh() ! exception in callbackhandler:onTreeRightClick Also moving a page is not possible (same error as before). But rotating a page works. What is going wrong here? Mit freundlichen Grüssen |
From: Michal H. <ms...@gm...> - 2010-11-09 13:36:30
|
On Tue, Nov 09, 2010 at 03:19:44PM +0100, Reiner Miericke wrote: > Hello Hi, > > just installed pdfedit-4.3-1.13 (SuSE 11.3) and tried to edit a document which > I had relinearized before. I guess you mean delinearized and manipulated the delinearized one, right? > It looks that I can't remove a page (object tree). All I get is a > > > removePageWithConditionalRefresh() > ! exception in callbackhandler:onTreeRightClick Are you trying to remove/move the page in the page tree on the right hand side? If yes, this is not implemented. If you want to remove a page from document or move it wrt. other then you should use either Page->Remove Page from the main menu or the icon in the toolbox. Move page (up/down) has an icon in the toolbox. Does this help? > > Also moving a page is not possible (same error as before). > But rotating a page works. > > What is going wrong here? > > > Mit freundlichen Gr?ssen > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Pdfedit-support mailing list > Pdf...@li... > https://lists.sourceforge.net/lists/listinfo/pdfedit-support -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-09 16:13:59
|
hello Michal thanks for your quick response. I also tried to remove the page using Page->Remove Page or the icon. In both cases the result is > delCurrentPage() Unbekannter Fehler tauchte im Skript auf (what means: Unnown error in script) I got the same message when clicking the icon for moving the page (up/down). Am Dienstag, 9. November 2010, 14:36:20 schrieb Michal Hocko: > On Tue, Nov 09, 2010 at 03:19:44PM +0100, Reiner Miericke wrote: > > Hello > > Hi, > > > just installed pdfedit-4.3-1.13 (SuSE 11.3) and tried to edit a document > > which I had relinearized before. > > I guess you mean delinearized and manipulated the delinearized one, > right? > > > It looks that I can't remove a page (object tree). All I get is a > > > > > removePageWithConditionalRefresh() > > > > ! exception in callbackhandler:onTreeRightClick > > Are you trying to remove/move the page in the page tree on the right > hand side? If yes, this is not implemented. If you want to remove a page > from document or move it wrt. other then you should use either > Page->Remove Page from the main menu or the icon in the toolbox. Move > page (up/down) has an icon in the toolbox. > > Does this help? > > > Also moving a page is not possible (same error as before). > > But rotating a page works. > > > > What is going wrong here? > |
From: Michal H. <ms...@gm...> - 2010-11-09 16:28:59
|
On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > hello Michal > > thanks for your quick response. > I also tried to remove the page using Page->Remove Page or the icon. > In both cases the result is > > > delCurrentPage() > Unbekannter Fehler tauchte im Skript auf > (what means: Unnown error in script) > > I got the same message when clicking the icon for moving the page (up/down). Can you share this document? If not can you run the pdfedit from a terminal with -d 5 and send the output? -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-09 16:43:28
|
Am Dienstag, 9. November 2010, 17:28:50 schrieb Michal Hocko: > On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > > hello Michal > > > > thanks for your quick response. > > I also tried to remove the page using Page->Remove Page or the icon. > > In both cases the result is > > > > > delCurrentPage() > > > > Unbekannter Fehler tauchte im Skript auf > > (what means: Unnown error in script) > > > > I got the same message when clicking the icon for moving the page > > (up/down). > > Can you share this document? If not can you run the pdfedit from a > terminal with -d 5 and send the output? Yes, I could share the document. It's originally one of the books published by my history club and scanned by Google. But there are pages missing, some are duplicated and the order of others is incorrect. It's a typical Google scan. Most simply you can get it at http://www.archive.org/download/ZeitschriftDesBergischenGeschichtsvereins26/ZeitschriftDesBergischenGeschichtsvereins26_text.pdf Regards Reiner Miericke |
From: Michal H. <ms...@gm...> - 2010-11-10 09:36:54
|
On Tue, Nov 09, 2010 at 06:50:35PM +0100, Reiner Miericke wrote: > Am Dienstag, 9. November 2010, 17:28:50 schrieb Michal Hocko: > > On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > > > hello Michal > > > > > > thanks for your quick response. > > > I also tried to remove the page using Page->Remove Page or the icon. > > > In both cases the result is > > > > > > > delCurrentPage() > > > > > > Unbekannter Fehler tauchte im Skript auf > > > (what means: Unnown error in script) > > > > > > I got the same message when clicking the icon for moving the page > > > (up/down). > > > > Can you share this document? If not can you run the pdfedit from a > > terminal with -d 5 and send the output? > > Yes, I could share the document. It's originally one of the books published by > my history club and scanned by Google. But there are pages missing, some are > duplicated and the order of others is incorrect. It's a typical Google scan. > Most simply you can get it at > > http://www.archive.org/download/ZeitschriftDesBergischenGeschichtsvereins26/ZeitschriftDesBergischenGeschichtsvereins26_text.pdf I have downloaded the file. Then I've delienarized it and opened the delinearized one and page (re)moving works just fine (I have played with the first few pages). Btw. which version of PDFedit do you use? I have tried that with the current CVS snapshot. I am asking because I assume that you have tried the operation on the linearized PDF which is read-only from PDFedit perspective and you should get something like: > delCurrentPage() ! In script '/usr/local/share/pdfedit/page.qs', line 118: ! Error. Exception in Pdf.removePage : Document is read-only Unknown error in script sounds like a bug we had in some of the previous version when GUI didn't report exceptions properly. > > > Regards > Reiner Miericke Regards -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-10 10:06:06
|
Hello Michal Am Mittwoch, 10. November 2010, 10:36:42 schrieb Michal Hocko: > On Tue, Nov 09, 2010 at 06:50:35PM +0100, Reiner Miericke wrote: > > Am Dienstag, 9. November 2010, 17:28:50 schrieb Michal Hocko: > > > On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > > > > hello Michal > > > > > > > > thanks for your quick response. > > > > I also tried to remove the page using Page->Remove Page or the icon. > > > > In both cases the result is > > > > > > > > > delCurrentPage() > > > > > > > > Unbekannter Fehler tauchte im Skript auf > > > > (what means: Unnown error in script) > > > > > > > > I got the same message when clicking the icon for moving the page > > > > (up/down). > > > > > > Can you share this document? If not can you run the pdfedit from a > > > terminal with -d 5 and send the output? > > > > Yes, I could share the document. It's originally one of the books > > published by my history club and scanned by Google. But there are pages > > missing, some are duplicated and the order of others is incorrect. It's > > a typical Google scan. Most simply you can get it at > > > > http://www.archive.org/download/ZeitschriftDesBergischenGeschichtsvereins > > 26/ZeitschriftDesBergischenGeschichtsvereins26_text.pdf thanks for your efforts! > I have downloaded the file. Then I've delienarized it and opened the > delinearized one and page (re)moving works just fine (I have played with > the first few pages). > > Btw. which version of PDFedit do you use? I have tried that with the > current CVS snapshot. I am asking because I assume that you have tried > the operation on the linearized PDF which is read-only from PDFedit installed is the rpm-package pdfedit-4.3-1.13 for SuSE 11.3 And I really delinearized the file prior to operate on it. The error messages are those shown above. That means I have to upgrade the package. Are there more recent ones for SUSE around? > perspective and you should get something like: > > delCurrentPage() > > ! In script '/usr/local/share/pdfedit/page.qs', line 118: > ! Error. Exception in Pdf.removePage : Document is read-only > > Unknown error in script sounds like a bug we had in some of the previous > version when GUI didn't report exceptions properly. > > > Regards > > Reiner Miericke > > Regards -- Mit freundlichen Grüssen Reiner Miericke |
From: Michal H. <ms...@gm...> - 2010-11-10 10:31:34
|
On Wed, Nov 10, 2010 at 12:13:15PM +0100, Reiner Miericke wrote: > Hello Michal > > Am Mittwoch, 10. November 2010, 10:36:42 schrieb Michal Hocko: > > On Tue, Nov 09, 2010 at 06:50:35PM +0100, Reiner Miericke wrote: > > > Am Dienstag, 9. November 2010, 17:28:50 schrieb Michal Hocko: > > > > On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > > > > > hello Michal > > > > > > > > > > thanks for your quick response. > > > > > I also tried to remove the page using Page->Remove Page or the icon. > > > > > In both cases the result is > > > > > > > > > > > delCurrentPage() > > > > > > > > > > Unbekannter Fehler tauchte im Skript auf > > > > > (what means: Unnown error in script) > > > > > > > > > > I got the same message when clicking the icon for moving the page > > > > > (up/down). > > > > > > > > Can you share this document? If not can you run the pdfedit from a > > > > terminal with -d 5 and send the output? > > > > > > Yes, I could share the document. It's originally one of the books > > > published by my history club and scanned by Google. But there are pages > > > missing, some are duplicated and the order of others is incorrect. It's > > > a typical Google scan. Most simply you can get it at > > > > > > http://www.archive.org/download/ZeitschriftDesBergischenGeschichtsvereins > > > 26/ZeitschriftDesBergischenGeschichtsvereins26_text.pdf > > thanks for your efforts! > > > I have downloaded the file. Then I've delienarized it and opened the > > delinearized one and page (re)moving works just fine (I have played with > > the first few pages). > > > > Btw. which version of PDFedit do you use? I have tried that with the > > current CVS snapshot. I am asking because I assume that you have tried > > the operation on the linearized PDF which is read-only from PDFedit > > installed is the rpm-package pdfedit-4.3-1.13 for SuSE 11.3 We are at 0.4.5 now so maybe it would be good to ask for the package upgrade in OpenSuSE. > And I really delinearized the file prior to operate on it. The error messages > are those shown above. Please note that delinearization might be tricky from user POV. What the option does is that it ask for a document which you want to delinearize (not the current one that is open) and write to a document you provide. This means that you have to _open_ that file once you are done with delinearization. Have you done that? > That means I have to upgrade the package. Are there more recent ones for SUSE > around? I am afraid there isn't any. It looks like the package is basically unmaintained. :( Anyway, you can compile it from sources. -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-10 10:50:46
|
Am Mittwoch, 10. November 2010, 11:31:24 schrieb Michal Hocko: > On Wed, Nov 10, 2010 at 12:13:15PM +0100, Reiner Miericke wrote: > > Hello Michal > > > > Am Mittwoch, 10. November 2010, 10:36:42 schrieb Michal Hocko: > > > On Tue, Nov 09, 2010 at 06:50:35PM +0100, Reiner Miericke wrote: > > > > Am Dienstag, 9. November 2010, 17:28:50 schrieb Michal Hocko: > > > > > On Tue, Nov 09, 2010 at 06:21:04PM +0100, Reiner Miericke wrote: > > > > > > hello Michal > > > > > > > > > > > > thanks for your quick response. > > > > > > I also tried to remove the page using Page->Remove Page or the > > > > > > icon. In both cases the result is > > > > > > > > > > > > > delCurrentPage() > > > > > > > > > > > > Unbekannter Fehler tauchte im Skript auf > > > > > > (what means: Unnown error in script) > > > > > > > > > > > > I got the same message when clicking the icon for moving the page > > > > > > (up/down). > > > > > > > > > > Can you share this document? If not can you run the pdfedit from a > > > > > terminal with -d 5 and send the output? > > > > > > > > Yes, I could share the document. It's originally one of the books > > > > published by my history club and scanned by Google. But there are > > > > pages missing, some are duplicated and the order of others is > > > > incorrect. It's a typical Google scan. Most simply you can get it at > > > > > > > > http://www.archive.org/download/ZeitschriftDesBergischenGeschichtsver > > > > eins 26/ZeitschriftDesBergischenGeschichtsvereins26_text.pdf > > > > thanks for your efforts! > > > > > I have downloaded the file. Then I've delienarized it and opened the > > > delinearized one and page (re)moving works just fine (I have played > > > with the first few pages). > > > > > > Btw. which version of PDFedit do you use? I have tried that with the > > > current CVS snapshot. I am asking because I assume that you have tried > > > the operation on the linearized PDF which is read-only from PDFedit > > > > installed is the rpm-package pdfedit-4.3-1.13 for SuSE 11.3 > > We are at 0.4.5 now so maybe it would be good to ask for the package > upgrade in OpenSuSE. where can I get the most recent sources? > > And I really delinearized the file prior to operate on it. The error > > messages are those shown above. > > Please note that delinearization might be tricky from user POV. What the > option does is that it ask for a document which you want to delinearize > (not the current one that is open) and write to a document you provide. > This means that you have to _open_ that file once you are done with > delinearization. Have you done that? yes, I did ith the right way > > That means I have to upgrade the package. Are there more recent ones for > > SUSE around? > > I am afraid there isn't any. It looks like the package is basically > unmaintained. :( > Anyway, you can compile it from sources. |
From: Michal H. <ms...@gm...> - 2010-11-10 12:20:06
|
On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: [...] > > We are at 0.4.5 now so maybe it would be good to ask for the package > > upgrade in OpenSuSE. > > where can I get the most recent sources? http://sourceforge.net/projects/pdfedit/files/ 0.4.5. is the last released one. Or you can get the current CVS snapshot by commands described at: http://sourceforge.net/projects/pdfedit/develop Compilation should be straight forward if you have all dependencies. Please have a look at README file which describes all of them. > > > > And I really delinearized the file prior to operate on it. The error > > > messages are those shown above. > > > > Please note that delinearization might be tricky from user POV. What the > > option does is that it ask for a document which you want to delinearize > > (not the current one that is open) and write to a document you provide. > > This means that you have to _open_ that file once you are done with > > delinearization. Have you done that? > > yes, I did ith the right way OK, then this sounds like a bug in that version. -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-17 08:47:37
|
Am Mittwoch, 10. November 2010, 13:19:56 schrieb Michal Hocko: > On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: > > 0.4.5. is the last released one. > yesterday I installed a0.4.5 version. But the effect still remains (removing page not possible). There is probably some bug in a library (SuSE 11.3). -- Mit freundlichen Grüssen Reiner Miericke |
From: Michal H. <ms...@gm...> - 2010-11-17 10:57:15
|
On Wed, Nov 17, 2010 at 09:47:32AM +0100, Reiner Miericke wrote: > Am Mittwoch, 10. November 2010, 13:19:56 schrieb Michal Hocko: > > On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: > > > > 0.4.5. is the last released one. > > > yesterday I installed a0.4.5 version. But the effect still remains (removing > page not possible). There is probably some bug in a library (SuSE 11.3). Can you run pdfedit with -d 5 (pdfedit -d 5 > log 2>&1), try to remove page which fails and send the log file? -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-17 11:34:52
Attachments:
pdfedit-0_4_5.log
|
Am Mittwoch, 17. November 2010, 11:57:05 schrieb Michal Hocko: > On Wed, Nov 17, 2010 at 09:47:32AM +0100, Reiner Miericke wrote: > > Am Mittwoch, 10. November 2010, 13:19:56 schrieb Michal Hocko: > > > On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: > > > > > > 0.4.5. is the last released one. > > > > yesterday I installed a0.4.5 version. But the effect still remains > > (removing page not possible). There is probably some bug in a library > > (SuSE 11.3). > > Can you run pdfedit with -d 5 (pdfedit -d 5 > log 2>&1), try to remove > page which fails and send the log file? of course: In the GUI I see following messages: PDFedit 0.4.5 > func_load() Datei geladen : /home/bgv/ZBGV/ZeitschriftDesBergischenGeschichtsvereins-26.pdf > PageSpace.nextPage() > PageSpace.nextPage() > PageSpace.nextPage() > delCurrentPage() Unbekannter Fehler tauchte im Skript auf > removePageWithConditionalRefresh() ! Ausnahme im Rückrufbehandler:onTreeRightClick > movePage(firstSelected(),1);parentReload() ! Ausnahme im Rückrufbehandler:onTreeRightClick > movePage(page(),-1);rootReload() Unbekannter Fehler tauchte im Skript auf where "Datei geladen" is "File loaded" "Unbekannter Fehler tauchte im Skript auf" is "Unknown error occured in script" "Ausnahme im Rückrufbehandler:onTreeRightClick" is "Exception in CallbackHandler..." Attached is the debugging output as requested -- Mit freundlichen Grüssen Reiner Miericke |
From: Michal H. <ms...@gm...> - 2010-11-21 12:15:34
|
On Wed, Nov 17, 2010 at 12:34:12PM +0100, Reiner Miericke wrote: > Am Mittwoch, 17. November 2010, 11:57:05 schrieb Michal Hocko: > > On Wed, Nov 17, 2010 at 09:47:32AM +0100, Reiner Miericke wrote: > > > Am Mittwoch, 10. November 2010, 13:19:56 schrieb Michal Hocko: > > > > On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: > > > > > > > > 0.4.5. is the last released one. > > > > > > yesterday I installed a0.4.5 version. But the effect still remains > > > (removing page not possible). There is probably some bug in a library > > > (SuSE 11.3). > > > > Can you run pdfedit with -d 5 (pdfedit -d 5 > log 2>&1), try to remove > > page which fails and send the log file? > > of course: > In the GUI I see following messages: > > PDFedit 0.4.5 > > func_load() > Datei geladen : > /home/bgv/ZBGV/ZeitschriftDesBergischenGeschichtsvereins-26.pdf > > PageSpace.nextPage() > > PageSpace.nextPage() > > PageSpace.nextPage() > > delCurrentPage() > Unbekannter Fehler tauchte im Skript auf > > removePageWithConditionalRefresh() > ! Ausnahme im R?ckrufbehandler:onTreeRightClick > > movePage(firstSelected(),1);parentReload() > ! Ausnahme im R?ckrufbehandler:onTreeRightClick > > movePage(page(),-1);rootReload() > Unbekannter Fehler tauchte im Skript auf > > where > "Datei geladen" is "File loaded" > "Unbekannter Fehler tauchte im Skript auf" is "Unknown error occured in > script" > "Ausnahme im R?ckrufbehandler:onTreeRightClick" is "Exception in > CallbackHandler..." If you run the application like: LC_ALL=POSIX pdfedit you will get all messages in english (default language) > > Attached is the debugging output as requested > > -- > Mit freundlichen Gr?ssen > Reiner Miericke [...] Here we are removing the page: > 4:GUI:pdfeditwindow.cc:menuActivated:227: Performing menu action: delCurrentPage() > 5:KERNEL:cpdf.cc:getPagePosition:2512: > 5:KERNEL:cpdf.cc:getPagePosition:2524: Page found at pos=4 > 5:KERNEL:cpdf.cc:getPageCount:2444: > 5:KERNEL:cpdf.cc:getPageCount:2451: cached page count=245 > 5:KERNEL:cpdf.cc:removePage:3099: > 5:KERNEL:cpdf.cc:getPageCount:2444: > 5:KERNEL:cpdf.cc:getPageCount:2451: cached page count=245 > 5:UTILS:cpdf.cc:findPageDict:433: startPos=1 pos=4 > 5:UTILS:cpdf.cc:findPageDict:498: Page node is intermediate > 5:UTILS:cpdf.cc:getCachedValue:270: key=1471 0 > 5:UTILS:cpdf.cc:getCachedValue:274: cache entry found. key=1471 0 value=245 > 5:UTILS:cpdf.cc:findPageDict:504: InterNode has 245 pages > 5:UTILS:cpdf.cc:findPageDict:547: kid[0] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:547: kid[1] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:547: kid[2] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:547: kid[3] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:559: page at pos=4 found. Node reference 13 0 OK, we have found the page dictionary (pdf object that represents the page). But if we check the object [13 0] then it turns out that this is not a page dictionary. This would explain the following message which says that the page object is not correct and so it throws an exception. > 2:KERNEL:cpdf.cc:removePage:3126: Pages Kids field is not an array type=Ref The strange thing is that I am not able to reproduce this. Here is what I get when removing the 4th page[*]: 4:GUI:pdfeditwindow.cc:menuActivated:227: Performing menu action: delCurrentPage() 5:KERNEL:cpdf.cc:getPagePosition:2485: 5:KERNEL:cpdf.cc:getPagePosition:2497: Page found at pos=4 5:KERNEL:cpdf.cc:getPageCount:2417: 5:KERNEL:cpdf.cc:getPageCount:2424: cached page count=245 5:KERNEL:cpdf.cc:removePage:3056: 5:KERNEL:cpdf.cc:getPageCount:2417: 5:KERNEL:cpdf.cc:getPageCount:2424: cached page count=245 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate 5:UTILS:cpdf.cc:getCachedValue:243: key=1217 0 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1217 0 value=245 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 245 pages 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=InterNode 5:UTILS:cpdf.cc:getCachedValue:243: key=1218 0 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1218 0 value=100 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate 5:UTILS:cpdf.cc:getCachedValue:243: key=1218 0 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1218 0 value=100 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 100 pages 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=InterNode 5:UTILS:cpdf.cc:getCachedValue:243: key=1219 0 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1219 0 value=10 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate 5:UTILS:cpdf.cc:getCachedValue:243: key=1219 0 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1219 0 value=10 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 10 pages 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=LeafNode 5:UTILS:cpdf.cc:findPageDict:520: kid[1] node type=LeafNode 5:UTILS:cpdf.cc:findPageDict:520: kid[2] node type=LeafNode 5:UTILS:cpdf.cc:findPageDict:520: kid[3] node type=LeafNode 5:UTILS:cpdf.cc:findPageDict:532: page at pos=4 found. Node reference 11 0 And then the process of removing continues. The object with reference [11 0] looks like a valid page dictionary. So either there is a bug in page traversing or the document is somehow broken. How did you get to this document? Coul you try to edit the delinearized document I have sent you earlier? --- [*] - I have just delinearized the document you provided to me and delinearized it with the current CVS snapshot, then changed the page to 4 and removed the page with the Remove Page button. -- Michal Hocko |
From: Reiner M. <re...@mi...> - 2010-11-22 08:46:34
Attachments:
ZeitschriftDesBergischenGeschichtsvereins-26.pdf
|
Am Sonntag, 21. November 2010, 13:15:23 schrieb Michal Hocko: > On Wed, Nov 17, 2010 at 12:34:12PM +0100, Reiner Miericke wrote: > > Am Mittwoch, 17. November 2010, 11:57:05 schrieb Michal Hocko: > > > On Wed, Nov 17, 2010 at 09:47:32AM +0100, Reiner Miericke wrote: > > > > Am Mittwoch, 10. November 2010, 13:19:56 schrieb Michal Hocko: > > > > > On Wed, Nov 10, 2010 at 11:50:34AM +0100, Reiner Miericke wrote: > > > > > > > > > > 0.4.5. is the last released one. > > > > > > > > yesterday I installed a0.4.5 version. But the effect still remains > > > > (removing page not possible). There is probably some bug in a library > > > > (SuSE 11.3). > > > > > > Can you run pdfedit with -d 5 (pdfedit -d 5 > log 2>&1), try to remove > > > page which fails and send the log file? > > > > of course: > > In the GUI I see following messages: > > > > PDFedit 0.4.5 > > > > > func_load() > > > > Datei geladen : > > /home/bgv/ZBGV/ZeitschriftDesBergischenGeschichtsvereins-26.pdf > > > > > PageSpace.nextPage() > > > PageSpace.nextPage() > > > PageSpace.nextPage() > > > delCurrentPage() > > > > Unbekannter Fehler tauchte im Skript auf > > > > > removePageWithConditionalRefresh() > > > > ! Ausnahme im R?ckrufbehandler:onTreeRightClick > > > > > movePage(firstSelected(),1);parentReload() > > > > ! Ausnahme im R?ckrufbehandler:onTreeRightClick > > > > > movePage(page(),-1);rootReload() > > > > Unbekannter Fehler tauchte im Skript auf > > > > where > > "Datei geladen" is "File loaded" > > "Unbekannter Fehler tauchte im Skript auf" is "Unknown error occured in > > script" > > "Ausnahme im R?ckrufbehandler:onTreeRightClick" is "Exception in > > CallbackHandler..." > > If you run the application like: LC_ALL=POSIX pdfedit > you will get all messages in english (default language) > > > Attached is the debugging output as requested > > [...] > > Here we are removing the page: > > 4:GUI:pdfeditwindow.cc:menuActivated:227: Performing menu action: > > delCurrentPage() 5:KERNEL:cpdf.cc:getPagePosition:2512: > > 5:KERNEL:cpdf.cc:getPagePosition:2524: Page found at pos=4 > > 5:KERNEL:cpdf.cc:getPageCount:2444: > > 5:KERNEL:cpdf.cc:getPageCount:2451: cached page count=245 > > 5:KERNEL:cpdf.cc:removePage:3099: > > 5:KERNEL:cpdf.cc:getPageCount:2444: > > 5:KERNEL:cpdf.cc:getPageCount:2451: cached page count=245 > > 5:UTILS:cpdf.cc:findPageDict:433: startPos=1 pos=4 > > 5:UTILS:cpdf.cc:findPageDict:498: Page node is intermediate > > 5:UTILS:cpdf.cc:getCachedValue:270: key=1471 0 > > 5:UTILS:cpdf.cc:getCachedValue:274: cache entry found. key=1471 0 > > value=245 5:UTILS:cpdf.cc:findPageDict:504: InterNode has 245 pages > > 5:UTILS:cpdf.cc:findPageDict:547: kid[0] node type=LeafNode > > 5:UTILS:cpdf.cc:findPageDict:547: kid[1] node type=LeafNode > > 5:UTILS:cpdf.cc:findPageDict:547: kid[2] node type=LeafNode > > 5:UTILS:cpdf.cc:findPageDict:547: kid[3] node type=LeafNode > > 5:UTILS:cpdf.cc:findPageDict:559: page at pos=4 found. Node reference 13 > > 0 > > OK, we have found the page dictionary (pdf object that represents the > page). But if we check the object [13 0] then it turns out that this is > not a page dictionary. This would explain the following message which > says that the page object is not correct and so it throws an exception. > > > 2:KERNEL:cpdf.cc:removePage:3126: Pages Kids field is not an array > > type=Ref > > The strange thing is that I am not able to reproduce this. Here is what > I get when removing the 4th page[*]: > 4:GUI:pdfeditwindow.cc:menuActivated:227: Performing menu action: > delCurrentPage() 5:KERNEL:cpdf.cc:getPagePosition:2485: > 5:KERNEL:cpdf.cc:getPagePosition:2497: Page found at pos=4 > 5:KERNEL:cpdf.cc:getPageCount:2417: > 5:KERNEL:cpdf.cc:getPageCount:2424: cached page count=245 > 5:KERNEL:cpdf.cc:removePage:3056: > 5:KERNEL:cpdf.cc:getPageCount:2417: > 5:KERNEL:cpdf.cc:getPageCount:2424: cached page count=245 > 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 > 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate > 5:UTILS:cpdf.cc:getCachedValue:243: key=1217 0 > 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1217 0 value=245 > 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 245 pages > 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=InterNode > 5:UTILS:cpdf.cc:getCachedValue:243: key=1218 0 > 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1218 0 value=100 > 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 > 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate > 5:UTILS:cpdf.cc:getCachedValue:243: key=1218 0 > 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1218 0 value=100 > 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 100 pages > 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=InterNode > 5:UTILS:cpdf.cc:getCachedValue:243: key=1219 0 > 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1219 0 value=10 > 5:UTILS:cpdf.cc:findPageDict:406: startPos=1 pos=4 > 5:UTILS:cpdf.cc:findPageDict:471: Page node is intermediate > 5:UTILS:cpdf.cc:getCachedValue:243: key=1219 0 > 5:UTILS:cpdf.cc:getCachedValue:247: cache entry found. key=1219 0 value=10 > 5:UTILS:cpdf.cc:findPageDict:477: InterNode has 10 pages > 5:UTILS:cpdf.cc:findPageDict:520: kid[0] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:520: kid[1] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:520: kid[2] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:520: kid[3] node type=LeafNode > 5:UTILS:cpdf.cc:findPageDict:532: page at pos=4 found. Node reference 11 0 > > And then the process of removing continues. The object with reference > [11 0] looks like a valid page dictionary. So either there is a bug in > page traversing or the document is somehow broken. > How did you get to this document? I just delinearized the document got from as described. in email sent (by me) on 10. Nov. 11:50. > Coul you try to edit the delinearized document I have sent you earlier? Sorry, I'm not aware that I should have received a document. Checked it twice. But it's probably a good idea to append my delinearized document to this email. Sorry for the 4 MBs > > --- > [*] - I have just delinearized the document you provided to me and > delinearized it with the current CVS snapshot, then changed the page to > 4 and removed the page with the Remove Page button. -- Mit freundlichen Grüssen Reiner Miericke |