Before you begin, I’ve had some bizarre issues getting this to work correctly on Windows. The zip file that gets uploaded to AWS has some odd permissions on it, which cause things to break. I recommend using OSX, Linux, or the WSL (Ubuntu 18.04 on Windows worked well).

First, you’ll need to install the AWS CLI and AWS SAM. Be sure that your installed version of Node.js is 12 and you’ll need to install Docker if you plan on testing things locally.

Run git clone https://github.com/davidkryzaniak/zeplin-html-to-pdf.git htmltopdf and then cd htmltopdf/


npm install to get all of the necessary packages.


All right! Let’s deploy it with sam deploy --guided

(These are the options I selected)


After a few seconds, you will be asked to “Deploy this changeset?” Enter Y and let it go.


Let it crunch for a few minutes, and if everything goes well, you should get the URL of the new endpoint.


We can prove that it’s working with a quick curl call curl -X POST --data "<h1>hi</h1>" https://vvgwi7g1pe.execute-api.us-east-1.amazonaws.com/Prod


Grab the output and throw it into a base64 to PDF converter. Base64.Guru has a pretty sweet converter. https://base64.guru/converter/decode/pdf

That’s it!

One thing to keep in mind is that this endpoint does not have any security or protection. You will want to modify the index.js to include some custom checks, implement CORS in the API Gateway, or setup a VPC so only your machines can access it.

29 Comments

  1. Charlesstepe

    Нужны чеки? купить чеки для бизнеса и физ. лиц. Чеки для отчетности ОФД, ККМ, ККТ. Реальные операции, гарантии оригинальности!

  2. JamesSoync

    онлайн-журнал https://pedia.com.ua для тех, кто интересуется современным образом жизни, здоровьем и саморазвитием. Полезные статьи о семье, воспитании детей, красоте, домашнем хозяйстве, садоводстве, технологиях и повседневных вопросах. Новые идеи, советы и интересные материалы для широкой аудитории.

  3. BrianSob

    Ищете отель на час https://spb.60minut.ru в Санкт-Петербурге? Ознакомьтесь с гостиницами и апартаментами с почасовой оплатой, сравните цены, расположение и условия проживания. Подберите номер для отдыха, деловой встречи или остановки между поездками. Удобные варианты краткосрочной аренды жилья.

  4. JamalDes

    Started believing the writer knew the topic deeply by about the second paragraph, and a look at goldendriftmarket reinforced that confidence, the speed at which a writer establishes credibility through their writing is a useful quality signal and this writer establishes it quickly and quietly without resorting to credential dropping or self promotion.

  5. RubenHor

    Started smiling at one paragraph because the writing was just nice, and a look at cloudspiregoods produced a couple more such moments, prose that produces small spontaneous reactions in the reader is doing more than just transferring information and the writers here are clearly hitting that level fairly consistently throughout pieces.

  6. EdwinHet

    информационный портал https://info-ukraine.com о событиях в Украине и мире. Читайте актуальные новости, интересные статьи, обзоры и аналитические материалы. Экономика, общество, политика, культура, технологии и повседневная жизнь — полезная информация на разные темы.

  7. WilliamSix

    информационный портал https://info24.com.ua о событиях в Украине и мире. Читайте актуальные новости, интересные статьи, обзоры и аналитические материалы. Экономика, общество, политика, культура, технологии и повседневная жизнь — полезная информация на разные темы.

  8. ArnoldDouts

    Новости Украины https://novitnosti.com и мира, полезные публикации и интересные материалы на Info24. Изучайте события общественной жизни, экономики, бизнеса, науки, технологий и культуры. Читайте тематические обзоры, знакомьтесь с актуальными тенденциями и получайте информацию на самые разные темы.

  9. LouisFag

    онлайн-портал https://pedia.com.ua познавательных публикаций для широкой аудитории. Здесь собраны интересные статьи, полезные рекомендации и тематические обзоры о здоровье, образовании, семье, воспитании детей, домашнем хозяйстве и современных технологиях.

  10. EmoryShogy

    Нужен фуршет? фуршеты на заказ с доставкой для корпоративных мероприятий, свадеб, дней рождения и деловых встреч. Организация выездного обслуживания, приготовление закусок, канапе, десертов и напитков. Подберём меню с учётом количества гостей, формата мероприятия и бюджета.

  11. LarryDriew

    ChronoSeasons https://chronoseasons.com men’s luxury watches, curated by season. Shop quiet luxury dress watches, Tissot COSC chronometers, Paul Rich Star Dust, dive, pilot chronograph and skeleton watches from 9 houses. Genuine, new and boxed, free US shipping on most brands, 30-day returns.

  12. Billykaw

    Хочешь праздничный фуршет? https://furshet-na-zakaz.ru для деловой встречи, вечеринки, презентации или торжества. Приготовление свежих закусок, мини-бутербродов, канапе и десертов. Подберём меню под формат мероприятия, количество участников и бюджет. Удобное оформление заказа.

  13. RobbieVor

    Копицентр «Копирыч» https://kopirych.by профессиональный партнер для тех, кому нужна качественная печать фото в городе минск и по всей Беларуси. Мы предлагаем полный комплекс полиграфические услуги для частных клиентов и компаний: от срочной подготовки документов до изготовления рекламной продукции и персональных сувениров.

  14. JamesPypem

    Хотите заказать https://mini-burgery-s-dostavkoj.ru? Предлагаем вкусные бургеры небольшого размера с мясными, сырными и другими начинками. Подходят для фуршетов, вечеринок и корпоративных мероприятий. Узнайте цены, выберите количество и оформите доставку.

  15. JamesFaimi

    Ищете, где заказать кейтеринг? https://jekrailcafe.ru для частных праздников, корпоративов, конференций и презентаций. Фуршетные и банкетные меню, канапе, горячие блюда, десерты и напитки. Доставка, сервировка и профессиональное обслуживание мероприятий.

  16. DavidBub

    A marketing brief for how to buy instagram views should explain why the content needs additional exposure and how success will be assessed beyond the displayed counter. Recent reviews can reveal workflow details, but they should be read for concrete events, dates, quantities, and resolutions rather than broad praise. This creates a record that can support the next campaign decision.

  17. JuliusBub

    Search pages for buy likes for instagram often emphasize speed, but a better review starts with billing clarity, login requirements, support access, and cancellation rules. It is also worth checking Instagram’s current rules and deciding whether the method aligns with the account owner’s own tolerance for risk. The result is a decision process that can be reviewed later.

  18. EmanuelRor

    A careful search for buy tiktok views should focus on documented terms, recent reviews, contact information, and a clear explanation of the ordering process. Purchased metrics should be treated as one promotional input, while content quality, targeting, posting consistency, and genuine interaction remain separate priorities. Specific terms are more useful than broad performance claims.

  19. HarryWes

    Researching buy instagram views makes more sense when the video already has a defined audience, a clear message, and a baseline captured before outside activity begins. Review whether the caption expands the video, repeats it, or creates a mismatch that could reduce comprehension after the initial view. If the post changes during the test, the report should mark the break rather than combine both versions.

  20. DavidBub

    A request to buy tiktok likes needs a defined purpose, target video, observation period, and budget before any provider comparison begins. Use a dedicated tracking note with timestamps, screenshots, order references, support messages, and observations made during the agreed delivery window. The conclusion should describe what was observed without claiming that the order caused unrelated campaign results.

  21. LarryABOTA

    Comparing best crypto casinos becomes clearer when every candidate is scored against the same safety, access, payment, and usability criteria. Compare privacy notices and data practices for identity documents, payment information, account monitoring, and retention after the account is closed. If any core condition remains unclear, the safest decision is to pause until official documentation resolves it.

  22. DavidBub

    Before comparing crypto exchanges, define the job the platform must handle, because an occasional purchase and active trading require different priorities. Assess reporting tools, transaction history, exports, and statements if the records will later be needed for accounting, tax preparation, or internal review. A small unfunded walkthrough can reveal usability problems before any financial commitment is made.

  23. WayneAcice

    Новости криптовалют https://coinmag.org актуальный курс биткоина и аналитика цифрового рынка. Следите за изменениями стоимости BTC, ETH и других популярных монет, изучайте прогнозы экспертов, рыночные обзоры и инвестиционные тенденции. Всё о криптовалютах и блокчейн-индустрии.

Leave a Reply

Your email address will not be published. Required fields are marked *