This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
00:16 guifa_ joined 00:17 guifa left 00:56 discord-raku-bot left 00:57 discord-raku-bot joined 13:26 otpv joined
otpv hi, i use PDF::IO::Reader to read a pdf file. that works fine. when i want to print out the content, i face 2 issues: when i log the object being the first content, the content is encoded and is not in the hash: 13:35
{Filter => FlateDecode, Length => ind-ref => [8 0]}
"...<long-encoded-string>..."
wondering how i can reach that encoded string. and how to decode it (i see an attribute Filter set to FlatDecode, so i tried to use PDF::IO::Filter.decode by setting Filter to FlatDecode, but w/o success).
here is the code:my PDF::IO::Reader $reader .= new; 13:37
$reader.open: 'myfile.pdf';
say $reader.trailer<Root><Pages><Kids>[0]<Contents>[0];
stevied wsl-lis 13:38
anyone know why this is returning false: `say $*SPEC.gist.contains(/unix/, :ignorecase);` 15:03
m: say $*SPEC.gist.contains(/unix/, :ignorecase); 15:05
15:05 otpv left
oh, i see. doesn't work with a regex 15:13
Nemokosch You could do a smartmatch for regex 16:09
17:32 Kaipei left
Util_ m: say $*SPEC.gist.lc.contains("unix"); 17:36
camelia True
17:39 Util_ is now known as Util 18:17 Kaiepi joined 21:19 lucs_ is now known as lucs 23:09 otpv joined