Hi,
I'm wondering what the status of using PDFKit in MacRuby. Should it be fully
usable now? I encountered a possible bug.
framework 'cocoa'
framework 'Quartz'
path =
pdfDoc = PDFDocument.alloc.initWithURL(NSURL.fileURLWithPath(path))
selections = pdfDoc.findString("the",withOptions:NSCa
Can you please file a ticket (find the info on the website) and maybe try to
reduce the problem to a few lines of code?
Thanks,
- Matt
Sent from my iPhone
On Dec 5, 2010, at 16:27, Yasu Imao wrote:
> Hi,
>
> I'm wondering what the status of using PDFKit in MacRuby. Should it be fully
> us
Hi Yasu,
I tried your sample with a large pdf in my environment a few times and it never
crashed. But I suspect the exception you're getting is due to a memory problem,
maybe related to the GC.
Can you try setting the GC_DISABLE environment variable to 1 when running the
script?
If it doesn't
Hi Laurent and Matt,
I tried the script with GC_DISABLE=1 (I'm not sure if this is how it should be,
though), and with GC_DISABLE set to 1, the script run without any problem. As
with my first post, 'sample.pdf' is a 12000 word academic journal article PDF
in English.
I also tried .map{|x| x.