들어가며
디지털 문서 작업을 할 때, PDF 파일을 HTML 테이블로 변환하는 작업은 많은 시간과 노력을 필요로 합니다. 이 글에서는 ChatGPT4를 활용하여 PDF 파일에 포함된 테이블을 간단하고 효율적으로 HTML 테이블로 변환하는 방법을 소개합니다. ChatGPT4는 인공지능 언어 모델로서, 코드 변환 작업을 포함한 다양한 텍스트 기반 작업을 자동화할 수 있는 강력한 도구입니다.
CapCut 단축키 완벽 가이드: 효율적인 비디오 편집을 위한 필수 팁
PDF를 HTML 테이블로 변환하기
PDF 파일에서 HTML 테이블로 변환하는 과정은 다음과 같습니다:
- PDF 파일 준비: 변환할 PDF 파일을 준비합니다. 이 예시에서는 특정 키보드 단축키에 대한 정보가 담긴 PDF 파일을 사용합니다.
- ChatGPT4 프롬프트 작성: ChatGPT4에게 변환 작업을 지시하는 프롬프트를 작성합니다. 예를 들어, “위 PDF에 있는 11개 테이블을 HTML로 만들어주고, 각각 테이블 제목은 h3 태그로 작성해줘”라는 프롬프트를 사용할 수 있습니다.
- 변환된 HTML 코드 확인: ChatGPT4가 생성한 HTML 코드를 확인하고, 필요에 따라 수정하거나 스타일을 추가합니다.
ChatGPT4o PDF to HTML TABLE 변환 예시
실제 저는 vscode의 단축키에 대해서 정리해보고 싶었습니다. 그리고 이와 같은 과정을 다른 모르는 분들을 위해서 워드프레스 블로그 글로 적어보기로 마음을 먹었습니다. 관련해서 검색한 결과 아래와 같이 PDF자료를 구할 수 있었으며, 당연히 블로그 글을 위해서 HTML 테이블로 변경할 필요가 있었습니다.
https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
실제 아래는 저의 ChatGpt4로 작업한 내용 입니다.
https://chatgpt.com/share/d74663b1-541c-4cc8-9384-f2fe4ce103cf
위 pdf 있는 11개 테이블을 html로 만들어주고, 각각 테이블 제목은 h3 태그로 작성해줘. 부탁해
아래 코드는 위 프롬프트로 chatgpt4o가 작성해준 HTML 코드 입니다.
<h3>General</h3>
<table>
<tr><td>Ctrl+Shift+P, F1</td><td>Show Command Palette</td></tr>
<tr><td>Ctrl+P</td><td>Quick Open, Go to File…</td></tr>
<tr><td>Ctrl+Shift+N</td><td>New window/instance</td></tr>
<tr><td>Ctrl+Shift+W</td><td>Close window/instance</td></tr>
<tr><td>Ctrl+,</td><td>User Settings</td></tr>
<tr><td>Ctrl+K Ctrl+S</td><td>Keyboard Shortcuts</td></tr>
</table>
<h3>Basic editing</h3>
<table>
<tr><td>Ctrl+X</td><td>Cut line (empty selection)</td></tr>
<tr><td>Ctrl+C</td><td>Copy line (empty selection)</td></tr>
<tr><td>Alt+ ↑ / ↓</td><td>Move line up/down</td></tr>
<tr><td>Shift+Alt + ↓ / ↑</td><td>Copy line up/down</td></tr>
<tr><td>Ctrl+Shift+K</td><td>Delete line</td></tr>
<tr><td>Ctrl+Enter</td><td>Insert line below</td></tr>
<tr><td>Ctrl+Shift+Enter</td><td>Insert line above</td></tr>
<tr><td>Ctrl+Shift+\</td><td>Jump to matching bracket</td></tr>
<tr><td>Ctrl+] / [</td><td>Indent/outdent line</td></tr>
<tr><td>Home / End</td><td>Go to beginning/end of line</td></tr>
<tr><td>Ctrl+Home</td><td>Go to beginning of file</td></tr>
<tr><td>Ctrl+End</td><td>Go to end of file</td></tr>
<tr><td>Ctrl+↑ / ↓</td><td>Scroll line up/down</td></tr>
<tr><td>Alt+PgUp / PgDn</td><td>Scroll page up/down</td></tr>
<tr><td>Ctrl+Shift+[</td><td>Fold (collapse) region</td></tr>
<tr><td>Ctrl+Shift+]</td><td>Unfold (uncollapse) region</td></tr>
<tr><td>Ctrl+K Ctrl+[</td><td>Fold (collapse) all subregions</td></tr>
<tr><td>Ctrl+K Ctrl+]</td><td>Unfold (uncollapse) all subregions</td></tr>
<tr><td>Ctrl+K Ctrl+0</td><td>Fold (collapse) all regions</td></tr>
<tr><td>Ctrl+K Ctrl+J</td><td>Unfold (uncollapse) all regions</td></tr>
<tr><td>Ctrl+K Ctrl+C</td><td>Add line comment</td></tr>
<tr><td>Ctrl+K Ctrl+U</td><td>Remove line comment</td></tr>
<tr><td>Ctrl+/</td><td>Toggle line comment</td></tr>
<tr><td>Shift+Alt+A</td><td>Toggle block comment</td></tr>
<tr><td>Alt+Z</td><td>Toggle word wrap</td></tr>
</table>
<h3>Navigation</h3>
<table>
<tr><td>Ctrl+T</td><td>Show all Symbols</td></tr>
<tr><td>Ctrl+G</td><td>Go to Line...</td></tr>
<tr><td>Ctrl+P</td><td>Go to File...</td></tr>
<tr><td>Ctrl+Shift+O</td><td>Go to Symbol...</td></tr>
<tr><td>Ctrl+Shift+M</td><td>Show Problems panel</td></tr>
<tr><td>F8</td><td>Go to next error or warning</td></tr>
<tr><td>Shift+F8</td><td>Go to previous error or warning</td></tr>
<tr><td>Ctrl+Shift+Tab</td><td>Navigate editor group history</td></tr>
<tr><td>Alt+ ← / →</td><td>Go back / forward</td></tr>
<tr><td>Ctrl+M</td><td>Toggle Tab moves focus</td></tr>
</table>
<h3>Search and replace</h3>
<table>
<tr><td>Ctrl+F</td><td>Find</td></tr>
<tr><td>Ctrl+H</td><td>Replace</td></tr>
<tr><td>F3 / Shift+F3</td><td>Find next/previous</td></tr>
<tr><td>Alt+Enter</td><td>Select all occurrences of Find match</td></tr>
<tr><td>Ctrl+D</td><td>Add selection to next Find match</td></tr>
<tr><td>Ctrl+K Ctrl+D</td><td>Move last selection to next Find match</td></tr>
<tr><td>Alt+C / R / W</td><td>Toggle case-sensitive / regex / whole word</td></tr>
</table>
<h3>Multi-cursor and selection</h3>
<table>
<tr><td>Alt+Click</td><td>Insert cursor</td></tr>
<tr><td>Ctrl+Alt+ ↑ / ↓</td><td>Insert cursor above / below</td></tr>
<tr><td>Ctrl+U</td><td>Undo last cursor operation</td></tr>
<tr><td>Shift+Alt+I</td><td>Insert cursor at end of each line selected</td></tr>
<tr><td>Ctrl+L</td><td>Select current line</td></tr>
<tr><td>Ctrl+Shift+L</td><td>Select all occurrences of current selection</td></tr>
<tr><td>Ctrl+F2</td><td>Select all occurrences of current word</td></tr>
<tr><td>Shift+Alt+→</td><td>Expand selection</td></tr>
<tr><td>Shift+Alt+←</td><td>Shrink selection</td></tr>
<tr><td>Shift+Alt + (drag mouse)</td><td>Column (box) selection</td></tr>
<tr><td>Ctrl+Shift+Alt + (arrow key)</td><td>Column (box) selection</td></tr>
<tr><td>Ctrl+Shift+Alt +PgUp/PgDn</td><td>Column (box) selection page up/down</td></tr>
</table>
<h3>Rich languages editing</h3>
<table>
<tr><td>Ctrl+Space, Ctrl+I</td><td>Trigger suggestion</td></tr>
<tr><td>Ctrl+Shift+Space</td><td>Trigger parameter hints</td></tr>
<tr><td>Shift+Alt+F</td><td>Format document</td></tr>
<tr><td>Ctrl+K Ctrl+F</td><td>Format selection</td></tr>
<tr><td>F12</td><td>Go to Definition</td></tr>
<tr><td>Alt+F12</td><td>Peek Definition</td></tr>
<tr><td>Ctrl+K F12</td><td>Open Definition to the side</td></tr>
<tr><td>Ctrl+.</td><td>Quick Fix</td></tr>
<tr><td>Shift+F12</td><td>Show References</td></tr>
<tr><td>F2</td><td>Rename Symbol</td></tr>
<tr><td>Ctrl+K Ctrl+X</td><td>Trim trailing whitespace</td></tr>
<tr><td>Ctrl+K M</td><td>Change file language</td></tr>
</table>
<h3>Editor management</h3>
<table>
<tr><td>Ctrl+F4, Ctrl+W</td><td>Close editor</td></tr>
<tr><td>Ctrl+K F</td><td>Close folder</td></tr>
<tr><td>Ctrl+\</td><td>Split editor</td></tr>
<tr><td>Ctrl+ 1 / 2 / 3</td><td>Focus into 1st, 2nd or 3rd editor group</td></tr>
<tr><td>Ctrl+K Ctrl+ ←/→</td><td>Focus into previous/next editor group</td></tr>
<tr><td>Ctrl+Shift+PgUp / PgDn</td><td>Move editor left/right</td></tr>
<tr><td>Ctrl+K ← / →</td><td>Move active editor group</td></tr>
</table>
<h3>File management</h3>
<table>
<tr><td>Ctrl+N</td><td>New File</td></tr>
<tr><td>Ctrl+O</td><td>Open File...</td></tr>
<tr><td>Ctrl+S</td><td>Save</td></tr>
<tr><td>Ctrl+Shift+S</td><td>Save As...</td></tr>
<tr><td>Ctrl+K S</td><td>Save All</td></tr>
<tr><td>Ctrl+F4</td><td>Close</td></tr>
<tr><td>Ctrl+K Ctrl+W</td><td>Close All</td></tr>
<tr><td>Ctrl+Shift+T</td><td>Reopen closed editor</td></tr>
<tr><td>Ctrl+K Enter</td><td>Keep preview mode editor open</td></tr>
<tr><td>Ctrl+Tab</td><td>Open next</td></tr>
<tr><td>Ctrl+Shift+Tab</td><td>Open previous</td></tr>
<tr><td>Ctrl+K P</td><td>Copy path of active file</td></tr>
<tr><td>Ctrl+K R</td><td>Reveal active file in Explorer</td></tr>
<tr><td>Ctrl+K O</td><td>Show active file in new window/instance</td></tr>
</table>
<h3>Display</h3>
<table>
<tr><td>F11</td><td>Toggle full screen</td></tr>
<tr><td>Shift+Alt+0</td><td>Toggle editor layout (horizontal/vertical)</td></tr>
<tr><td>Ctrl+ = / -</td><td>Zoom in/out</td></tr>
<tr><td>Ctrl+B</td><td>Toggle Sidebar visibility</td></tr>
<tr><td>Ctrl+Shift+E</td><td>Show Explorer / Toggle focus</td></tr>
<tr><td>Ctrl+Shift+F</td><td>Show Search</td></tr>
<tr><td>Ctrl+Shift+G</td><td>Show Source Control</td></tr>
<tr><td>Ctrl+Shift+D</td><td>Show Debug</td></tr>
<tr><td>Ctrl+Shift+X</td><td>Show Extensions</td></tr>
<tr><td>Ctrl+Shift+H</td><td>Replace in files</td></tr>
<tr><td>Ctrl+Shift+J</td><td>Toggle Search details</td></tr>
<tr><td>Ctrl+Shift+U</td><td>Show Output panel</td></tr>
<tr><td>Ctrl+Shift+V</td><td>Open Markdown preview</td></tr>
<tr><td>Ctrl+K V</td><td>Open Markdown preview to the side</td></tr>
<tr><td>Ctrl+K Z</td><td>Zen Mode (Esc Esc to exit)</td></tr>
</table>
<h3>Debug</h3>
<table>
<tr><td>F9</td><td>Toggle breakpoint</td></tr>
<tr><td>F5</td><td>Start/Continue</td></tr>
<tr><td>Shift+F5</td><td>Stop</td></tr>
<tr><td>F11 / Shift+F11</td><td>Step into/out</td></tr>
<tr><td>F10</td><td>Step over</td></tr>
<tr><td>Ctrl+K Ctrl+I</td><td>Show hover</td></tr>
</table>
<h3>Integrated terminal</h3>
<table>
<tr><td>Ctrl+`</td><td>Show integrated terminal</td></tr>
<tr><td>Ctrl+Shift+`</td><td>Create new terminal</td></tr>
<tr><td>Ctrl+C</td><td>Copy selection</td></tr>
<tr><td>Ctrl+V</td><td>Paste into active terminal</td></tr>
<tr><td>Ctrl+↑ / ↓</td><td>Scroll up/down</td></tr>
<tr><td>Shift+PgUp / PgDn</td><td>Scroll page up/down</td></tr>
<tr><td>Ctrl+Home / End</td><td>Scroll to top/bottom</td></tr>
</table>
wordpress에 사용자정의 html 작성하기
아래 gif파일을 살펴보면 chatgpt4o 로 만들어진 html table 코드를 wordpress의 사용자정의 html 블럭에 copy&paste 합니다.
아래는 당연히 결과물 입니다.
워드프레스에서 보여지는 HTML TABLE
아래 H3태그 소제목의 style은 저의 블로그 스타일이 적용된 상태입니다.
h3 소제목 꾸미기 코드
.single .entry-content h3 {
margin: 1em 0 0.65em 0;
font-weight: 600;
font-family: 'Titillium Web', sans-serif;
position: relative;
text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
font-size: 22px;
line-height: 40px;
color: #355681;
text-transform: uppercase;
BORDER-LEFT: #355681 10px solid;
padding-left: 10px;
border-bottom: 1px solid rgba(53,86,129, 0.3);
}
General
Ctrl+Shift+P, F1 | Show Command Palette |
Ctrl+P | Quick Open, Go to File… |
Ctrl+Shift+N | New window/instance |
Ctrl+Shift+W | Close window/instance |
Ctrl+, | User Settings |
Ctrl+K Ctrl+S | Keyboard Shortcuts |
Basic editing
Ctrl+X | Cut line (empty selection) |
Ctrl+C | Copy line (empty selection) |
Alt+ ↑ / ↓ | Move line up/down |
Shift+Alt + ↓ / ↑ | Copy line up/down |
Ctrl+Shift+K | Delete line |
Ctrl+Enter | Insert line below |
Ctrl+Shift+Enter | Insert line above |
Ctrl+Shift+\ | Jump to matching bracket |
Ctrl+] / [ | Indent/outdent line |
Home / End | Go to beginning/end of line |
Ctrl+Home | Go to beginning of file |
Ctrl+End | Go to end of file |
Ctrl+↑ / ↓ | Scroll line up/down |
Alt+PgUp / PgDn | Scroll page up/down |
Ctrl+Shift+[ | Fold (collapse) region |
Ctrl+Shift+] | Unfold (uncollapse) region |
Ctrl+K Ctrl+[ | Fold (collapse) all subregions |
Ctrl+K Ctrl+] | Unfold (uncollapse) all subregions |
Ctrl+K Ctrl+0 | Fold (collapse) all regions |
Ctrl+K Ctrl+J | Unfold (uncollapse) all regions |
Ctrl+K Ctrl+C | Add line comment |
Ctrl+K Ctrl+U | Remove line comment |
Ctrl+/ | Toggle line comment |
Shift+Alt+A | Toggle block comment |
Alt+Z | Toggle word wrap |
Navigation
Ctrl+T | Show all Symbols |
Ctrl+G | Go to Line… |
Ctrl+P | Go to File… |
Ctrl+Shift+O | Go to Symbol… |
Ctrl+Shift+M | Show Problems panel |
F8 | Go to next error or warning |
Shift+F8 | Go to previous error or warning |
Ctrl+Shift+Tab | Navigate editor group history |
Alt+ ← / → | Go back / forward |
Ctrl+M | Toggle Tab moves focus |
Search and replace
Ctrl+F | Find |
Ctrl+H | Replace |
F3 / Shift+F3 | Find next/previous |
Alt+Enter | Select all occurrences of Find match |
Ctrl+D | Add selection to next Find match |
Ctrl+K Ctrl+D | Move last selection to next Find match |
Alt+C / R / W | Toggle case-sensitive / regex / whole word |
Multi-cursor and selection
Alt+Click | Insert cursor |
Ctrl+Alt+ ↑ / ↓ | Insert cursor above / below |
Ctrl+U | Undo last cursor operation |
Shift+Alt+I | Insert cursor at end of each line selected |
Ctrl+L | Select current line |
Ctrl+Shift+L | Select all occurrences of current selection |
Ctrl+F2 | Select all occurrences of current word |
Shift+Alt+→ | Expand selection |
Shift+Alt+← | Shrink selection |
Shift+Alt + (drag mouse) | Column (box) selection |
Ctrl+Shift+Alt + (arrow key) | Column (box) selection |
Ctrl+Shift+Alt +PgUp/PgDn | Column (box) selection page up/down |
Rich languages editing
Ctrl+Space, Ctrl+I | Trigger suggestion |
Ctrl+Shift+Space | Trigger parameter hints |
Shift+Alt+F | Format document |
Ctrl+K Ctrl+F | Format selection |
F12 | Go to Definition |
Alt+F12 | Peek Definition |
Ctrl+K F12 | Open Definition to the side |
Ctrl+. | Quick Fix |
Shift+F12 | Show References |
F2 | Rename Symbol |
Ctrl+K Ctrl+X | Trim trailing whitespace |
Ctrl+K M | Change file language |
Editor management
Ctrl+F4, Ctrl+W | Close editor |
Ctrl+K F | Close folder |
Ctrl+\ | Split editor |
Ctrl+ 1 / 2 / 3 | Focus into 1st, 2nd or 3rd editor group |
Ctrl+K Ctrl+ ←/→ | Focus into previous/next editor group |
Ctrl+Shift+PgUp / PgDn | Move editor left/right |
Ctrl+K ← / → | Move active editor group |
File management
Ctrl+N | New File |
Ctrl+O | Open File… |
Ctrl+S | Save |
Ctrl+Shift+S | Save As… |
Ctrl+K S | Save All |
Ctrl+F4 | Close |
Ctrl+K Ctrl+W | Close All |
Ctrl+Shift+T | Reopen closed editor |
Ctrl+K Enter | Keep preview mode editor open |
Ctrl+Tab | Open next |
Ctrl+Shift+Tab | Open previous |
Ctrl+K P | Copy path of active file |
Ctrl+K R | Reveal active file in Explorer |
Ctrl+K O | Show active file in new window/instance |
Display
F11 | Toggle full screen |
Shift+Alt+0 | Toggle editor layout (horizontal/vertical) |
Ctrl+ = / – | Zoom in/out |
Ctrl+B | Toggle Sidebar visibility |
Ctrl+Shift+E | Show Explorer / Toggle focus |
Ctrl+Shift+F | Show Search |
Ctrl+Shift+G | Show Source Control |
Ctrl+Shift+D | Show Debug |
Ctrl+Shift+X | Show Extensions |
Ctrl+Shift+H | Replace in files |
Ctrl+Shift+J | Toggle Search details |
Ctrl+Shift+U | Show Output panel |
Ctrl+Shift+V | Open Markdown preview |
Ctrl+K V | Open Markdown preview to the side |
Ctrl+K Z | Zen Mode (Esc Esc to exit) |
Debug
F9 | Toggle breakpoint |
F5 | Start/Continue |
Shift+F5 | Stop |
F11 / Shift+F11 | Step into/out |
F10 | Step over |
Ctrl+K Ctrl+I | Show hover |
Integrated terminal
Ctrl+` | Show integrated terminal |
Ctrl+Shift+` | Create new terminal |
Ctrl+C | Copy selection |
Ctrl+V | Paste into active terminal |
Ctrl+↑ / ↓ | Scroll up/down |
Shift+PgUp / PgDn | Scroll page up/down |
Ctrl+Home / End | Scroll to top/bottom |
마치며
ChatGPT4를 활용하면 복잡한 PDF 변환 작업을 손쉽게 처리할 수 있습니다. 이를 통해 시간과 노력을 절약할 수 있을 뿐만 아니라, 변환된 데이터를 웹 페이지나 다른 디지털 문서에서 쉽게 활용할 수 있습니다. ChatGPT4의 강력한 기능을 활용하여 다양한 문서 작업을 자동화하고 효율성을 높여보세요.
이 글이 여러분의 PDF 변환 작업에 도움이 되길 바랍니다. ChatGPT4의 다양한 활용 방법을 통해 더 많은 작업을 자동화하고 효율적으로 처리할 수 있습니다.
댓글 남기기