메뉴 닫기

URL to PDF Microservice – 웹페이지 PDF 문서로 변환

출처 
https://github.com/alvarcarto/url-to-pdf-api


웹페이지를 PDF 파일로 랜더링해주는 API 서비스 입니다.
저같은 경우는 PDF로 제공되지 않는 메뉴얼 문서나 마우스 오른쪽 클릭을 막아놓는 웹페이지를 스크랩할때 사용하지만 온라인상에 영수증, 청구서, 보고서등 다양하게 활용가능할거 같습니다.

아래와 같은 경고가 있으니 사용시에는 주의바랍니다.
WARNING: Don’t serve this API publicly to the internet unless you are aware of the risks. It allows API users to run any JavaScript code inside a Chrome session on the server. It’s fairly easy to expose the contents of files on the server. You have been warned!

 

아래는 오픈스택 설치문서를 PDF 파일로 변환해서 보는 스크린샷입니다.

OpenStack Install Guide
https://url-to-pdf-api.herokuapp.com/api/render?url=https://docs.openstack.org/install-guide/

리눅스 유저의 경우 curl을 활용하면 됩니다.

 

상단에 걸어둔 원문링크에는 다양한 예제들이 있으니 참고하시기 바랍니다.
ex) 특정페이지만 랜더링, A5 크기로 랜더링, 여백주고 랜더링, 텍스트본문으로 랜더링등등

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x