PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000267 [PDFedit] =Other (Kernel)= feature always 10-03-08 14:11 07-03-09 23:53
Reporter hockm0bm View Status public  
Assigned To hockm0bm
Priority high Resolution fixed  
Status closed   Product Version CVS
Summary 0000267: implement JBIG2Stream::clone
Description JBIG2Stream::clone is not implemented and this causes PDFedit not being able to open documents with streams with this compression filter.
Additional Information
Attached Files  Bid Forms.pdf - Adobe Acrobat Standard.pdf [^] (149,181 bytes) 10-03-08 17:11
 JBIGStream_clone.patch [^] (1,151 bytes) 10-06-08 11:05

- Relationships
has duplicate 0000271closed hockm0bm PDFEdit crashes when I open a specific (valid) PDF file 

- Notes
(0000563)
gracedman
10-03-08 17:12

Sample file attached as per Michal Hocko's request. The file was edited using Acrobat Standard version 8.
 
(0000564)
hockm0bm
10-06-08 11:07

JBIGStream_clone.patch implements JBIG2Stream::clone method.

I have tried this with attached document and the crash doesn't appear anymore. Nevertheless I had problems to add some text (even when system font was inserted) to the page. I was able to draw lines though. This may be similar issue as the 0000254
 
(0000565)
hockm0bm
10-06-08 11:08

gracedman could you try the attached patch?
 
(0000566)
gracedman
10-07-08 01:17

I applied the patch and it does bring us much closer. I can now open the file however functionality seems compromised. Here are some examples:
 - highlighting text turns it solid color and unreadable rather than highlighted, i.e., the text becomes a solid yellow (black, blue, green) bar.
 - Strikethrough works but takes a very, very long time
 - Editing existing objects fails. It looks like the text is changed; there is some kind of selected area where one would expect the change to be but the text is not changed
 - Adding text fails. The text is received but, after pressing enter, the text box goes away and no text appears in the document

The following was dumped to the console:
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 383
QString::arg(): Argument missing: highlightingSelectedText(), 348
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 301
QString::arg(): Argument missing: highlightingSelectedText(), 445
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 376
QString::arg(): Argument missing: highlightingSelectedText(), 458
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 526
QString::arg(): Argument missing: strikeTroughSelection(), 450
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 542
QString::arg(): Argument missing: strikeTroughSelection(), 477
QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 298
QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 205
Error: PDF file is damaged - attempting to reconstruct xref table...
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 492
QString::arg(): Argument missing: highlightingSelectedText(), 364
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 426
QString::arg(): Argument missing: highlightingSelectedText(), 418
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0

Hope this helps. Thanks - John
 
(0000570)
hockm0bm
10-07-08 17:40

> QString::arg(): Argument missing: strikeTroughSelection(), 542
> QString::arg(): Argument missing: strikeTroughSelection(), 477
> QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 298
> QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 205
> Error: PDF file is damaged - attempting to reconstruct xref table...

When did you receive this message?
* Open
* Open, Change
* Open, Change, Save, Open
 
(0000571)
gracedman
10-07-08 18:42

I don't know exactly when in the process. I do not believe I tried to save the file because I was making random, test changes. I was simply trying to highlight, strike through, edit text objects and add new text.
 
(0000572)
hockm0bm
10-07-08 19:07

> - highlighting text turns it solid color and unreadable rather than highlighted, i.e., the text becomes a solid yellow (black, blue, green) bar.

Agreed

> - Strikethrough works but takes a very, very long time

Agreed

> - Editing existing objects fails. It looks like the text is changed; there is some kind of selected area where one would expect the change to be but the text is not changed

Agreed

> - Adding text fails. The text is received but, after pressing enter, the text box goes away and no text appears in the document

Agreed

> QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 298
> QString::arg(): Argument missing: drawArrow(66,93,196,93,true), 205
> Error: PDF file is damaged - attempting to reconstruct xref table...

Not able to reproduce. Are you using current CVS sources?
 
(0000573)
hockm0bm
10-07-08 19:19

All visual aspects are same as in issue 0000254.
I suggest closing this issue, because clone method has been implemented and seems to cause no problems (except for Xref corrupted which may be - but I don't give it a big chance - related).

We can handle the rest of the problem in the respective (0000254) bug report.
 
(0000576)
gracedman
10-07-08 20:01

No, I installed from the latest tarball.
 
(0000592)
hockm0bm
11-05-08 21:57

primary issue is solved (JBIG2Stream::clone method implementation) so we can close this report
 
(0000593)
hockm0bm
11-05-08 21:57

primary issue is solved (JBIG2Stream::clone method implementation) so we can close this report
 

- Issue History
Date Modified Username Field Change
10-03-08 14:11 hockm0bm New Issue
10-03-08 14:11 hockm0bm Category =Other (Commandline)= => =Other (Kernel)=
10-03-08 17:11 gracedman File Added: Bid Forms.pdf - Adobe Acrobat Standard.pdf
10-03-08 17:12 gracedman Note Added: 0000563
10-05-08 16:41 hockm0bm Status new => assigned
10-05-08 16:41 hockm0bm Assigned To  => hockm0bm
10-06-08 11:05 hockm0bm File Added: JBIGStream_clone.patch
10-06-08 11:07 hockm0bm Note Added: 0000564
10-06-08 11:08 hockm0bm Note Added: 0000565
10-07-08 01:17 gracedman Note Added: 0000566
10-07-08 17:40 hockm0bm Note Added: 0000570
10-07-08 18:42 gracedman Note Added: 0000571
10-07-08 19:07 hockm0bm Note Added: 0000572
10-07-08 19:19 hockm0bm Note Added: 0000573
10-07-08 20:01 gracedman Note Added: 0000576
10-26-08 10:36 hockm0bm Relationship added has duplicate 0000271
11-05-08 21:57 hockm0bm Status assigned => resolved
11-05-08 21:57 hockm0bm Resolution open => fixed
11-05-08 21:57 hockm0bm Note Added: 0000592
11-05-08 21:57 hockm0bm Note Added: 0000593
11-05-08 21:57 hockm0bm Fixed in Version  => CVS
07-03-09 23:53 bilbo Status resolved => closed