- Notifications
You must be signed in to change notification settings - Fork10
Rust based hwp parser and tools
License
NotificationsYou must be signed in to change notification settings
hahnlee/hwp-rs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.
Rust로 작성된 hwp파서와 각종 도구들
fromlibhwpimportHWPReaderhwp=HWPReader('<파일 경로>')# 모든 문단 출력 (표, 캡션 포함)forparagraphinhwp.find_all('paragraph'):print(paragraph)# 테이블 내용 출력fortableinhwp.find_all('table'):forcellintable.cells:forparagraphincell.paragraphs:print(paragraph)# 문서에 사용된 파일 저장forfileinhwp.bin_data:withopen(file.name,'wb')asf:f.write(file.data)
가이드 문서를 참고해주세요
없습니다.
하지만wasm-bindgen을 이용한 웹 어셈블리 바인딩은 준비중이며,napi-rs를 사용한 node 바인딩은 고려하고 있습니다.
필요시 hwp-rs를 직접 바인딩하여 사용해주세요. 만약 장기적인 관리를 해주실 수 있다면discussions에 알려주세요.
Copyright Han Lee <hanlee.dev@gmail.com> and other contributorsLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.About
Rust based hwp parser and tools
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.