pdf-raku / PDF-Class-raku

PDF Document Object Model (under construction)
Artistic License 2.0
7 stars 3 forks source link

Dump when executing: "pdf-burst.raku --page=1 --save-as=t.pdf irrigation-plan.pdf" #22

Closed tbrowder closed 1 year ago

tbrowder commented 1 year ago

See the input file at:

irrigation-plan.pdf

dwarring commented 1 year ago

Thanks Tom.

The cross reference table unusual. It's actually similar to this SO question, which I commented on a few weeks ago. This also involved a PDF produced by the Microsoft print driver.

Seems the PDF cross reference indexing and parsing needs some changes to handle this.

tbrowder commented 1 year ago

Great that the problem is known. Any chance of a fix anytime soon?

I'm trying to modify that file to (1) scale it up and (2) add some text on top of the diagram to zoom in on the zone details of my new irrigation system I paid to have installed. Thanks to your code I know I can do that!

dwarring commented 1 year ago

Hi Tom, Should have a fix in the next few days. In the interim you can run pdf-rewriter.raku --repair on the file to fix it.

I'll also add the --repair option to pdf-burst.raku.

tbrowder commented 1 year ago

On Tue, May 16, 2023 at 20:12 David Warring @.***> wrote:

Hi Tom, Should have a fix in the next few days. In the interim you can run pdf-rewriter.raku --repair on the file to fix it.

Erg, that failed also.

-Tom

dwarring commented 1 year ago

OK, I'll get onto it over the next couple of days.

dwarring commented 1 year ago

@tbrowder please upgrade to latest PDF 0.5.17 and try again.

tbrowder commented 1 year ago

Great, working now! Thanks, David.