search for: isnl

Displaying 1 result from an estimated 1 matches for "isnl".

Did you mean: isn
2024 Jun 01
2
Tools to modify highlighted areas in pdf documents?
...eonard ######### library(zip) con = file("_some_pdf_.pdf", "rb") NL = 0 # - very dirty hack; # - assumes Annotations are in the last fragment/chunk; while(TRUE) { tmp = readBin(con, "raw", 1024*128 + 515); ??????if(length(tmp) == 0) break; ??????x = tmp; ??????# isNL = (x == 10) | (x == 13); ??????isNL = (x == 13); ??????isNL = isNL & (x[which(isNL) + 1] == 10); NL = NL + sum(isNL); } close(con) idP = which(isNL) idS = 935; # will vary with pdf and Annotations and ...; nLast = 4; # usually 2 chunks idx = idP[seq(idS, length.out = nLast)] # Check: Ri...