사용자 도구

사이트 도구


android:hwp_manipulation
hwp manipulation

문서의 이전 판입니다!


What is HWP

The file extension HWP, HWPX is word processor file type which is developed by Hancom.

Like DOC or DOCX, the HWP files has its own specification. But, hwp is very like DOC, and hwpx is very similar to DOCX in view of file specification. For example, hwp uses Microsoft compound file like DOC, and hwpx uses zip like DOCX.

So, If you can analysis DOC, you can analysis HWP. Actually, the hwplib uses APACHE-POI who manipulate Microsoft WORD.

In this article, I will show you how to manipulate hwp file by using hwplib.

hwplib

Hwplib is a library that can read and write hwp file. Hwplib was made by 박성균(Park.sung.kyun).

The maven repository is

[[https://mvnrepository.com/artifact/kr.dogfoot/hwplib/|https://mvnrepository.com/artifact/kr.dogfoot/hwplib/]]

You can add dependency is android project by typing this in gradle.kts

  // https://mvnrepository.com/artifact/kr.dogfoot/hwplib
  implementation("kr.dogfoot:hwplib:1.1.8")

You can find many source file in source files.

HWP File

First, you must make “ClickHere(누름틀)” Field in HWP File.

By Ctrl + K + E, You can make “ClickHere” Field. and by Ctrl + N + K, You can modify that Field.

This is a sample hwp file which make “ClickHere” Field.

evadeinvestigator.hwp

You can save file inside your app by locating file in [res] →[ raw] folder

res raw folder

로그인하면 댓글을 남길 수 있습니다.

android/hwp_manipulation.1738078755.txt.gz · 마지막으로 수정됨: 2025/01/29 00:39 저자 이거니맨