Method and system for automatically inserting bookmark information of hwp document into pdf document

The present invention relates to a method and system to automatically insert the bookmark information of the HWP document when creating PDF document in the PDF document, the method according to the invention to create a virtual page document to the HWP document specified by the PDF conversion target from a user step, moves the anchor position to the position corresponding to the bookmark that corresponds to the control header in the virtual page document, if the step of detecting a control header from the binary data of the HWP document, the detected control header corresponds to a bookmark If the step to move the cursor to the paragraph position to detect the control data, the control data in the preceding paragraph position is detected, setting a name item in the control data, the bookmark name, the page using the Hangul API corresponding to the moved cursor obtaining a number, and the installation It comprises the steps of adding the acquired page number and the name of the specified bookmarks in the bookmark list. According to the present invention, the bookmark and bookmark block of HWP document can be automatically mapped to a bookmark in a PDF document by automatically extracting the conversion.