Upgrade to Pro — share decks privately, control downloads, hide ads and more …

文字とPDFとPDFKit

T. MOTOOKA
September 08, 2019

 文字とPDFとPDFKit

macOSのPDFKitで取れる文字について。

2019.09.08 at macOS native Symposium #5
https://macos-native.connpass.com/event/138153/

T. MOTOOKA

September 08, 2019
Tweet

More Decks by T. MOTOOKA

Other Decks in Technology

Transcript

  1. "CPVUUIF4QFBLFS w 5.0500,"!U@NPUPPLB w $3.ͱ͔࡞ͬͯΔਓ w ͳ͔ͥ࢓ࣄͷଟ͘Ͱ1%'ʹؔΘΔ w ׽ࣈ5BML ೥

    ͔Βͷ
 .BDϢʔβɾΞϓϦ։ൃऀʢϒϥϯΫ௕Ίʣ w ࡞Δ.BDΞϓϦ͸ࣗ෼ઐ༻ͷ΋ͷ͹͔Γ w ."4৹ࠪʹ௨Βͳ͍΋ͷ͹͔Γ
  2. ࢼͨ͠จࣈ w ͜ͷ݁Ռ͸ɺ1%'࡞੒ϓϩάϥϜͷ࢓༷ʹԠͯ͡มΘΓ·͢ʂ w ͜͜Ͱ͸ɺ.48PSEͷ1%'ΤΫεϙʔτػೳͰͷྫͰ͢ɻ w ୙఺ɾ൒୙఺ΛؚΉจࣈʮύεϫʔυʯ w /'%ਖ਼نԽ͞Εͨঢ়ଶͰऔΕΔʢͪͳΈʹ5P6OJDPEF.BQͰ͸/'$ਖ਼نԽʣ w

    65'Ͱ4VSSPHBUF1BJSʹͳΔֆจࣈʮʯ6 '" w ͦͷ··औΕΔ w ;8+ ;FSP8JEUI+PJOFS Ͱܨ͛ͨֆจࣈ
 ʮ$ʯ8PNBO ;8+ 8PNBO ;8+ (JSM w औΕͳ͍ʢԽ͚Δʣ w ҟମࣈηϨΫλ෇͖ʮ❄ʯ6  6 &'' w ҟମࣈηϨΫλ͕ൈ͚མͪͯʮ❄ʯʹͳΔ
  3. QEGUL w 1%'ϑΝΠϧΛՃ޻ͯ͘͠ΕΔπʔϧ w 1%'ϑΝΠϧ಺ͷѹॖ෦෼ͷ৳௕΋Ͱ͖Δ w ΊͬͪΌݹ͍ w :PTFNJUF·Ͱ͸ී௨ʹಈ͍ͨ w

    ඇެࣜϏϧυͰ͸.PKBWFͰ΋ಈ͘Β͍͚͠Ͳා͍ w 6CVOUVͳΒެࣜϏϧυ͕࢖͑Δ w ͸μϝ
  4. QEGULΛ%PDLFSͰ࢖͏ w docker run -it --rm --mount type=bind,source="$ (pwd)/work",dst="/work/" ubuntu:16.04

    bash w ΧϨϯτσΟϨΫτϦ಺ͷʮXPSLʯΛϚ΢ϯτ w ࠶ར༻Λߟྀ͠ͳ͍ߏ੒ w apt update; apt install -y pdftk w QEGULΛΠϯετʔϧ w pdftk test1.pdf output - uncompress > test1.1.pdf w QEGULͰ1%'ϑΝΠϧ಺༰Λ৳௕
  5. 2"

  6. ׬