<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Artem Martirosyan</title>
    <description>The latest articles on DEV Community by Artem Martirosyan (@artem_martirosyan_2ba4b28).</description>
    <link>https://dev.to/artem_martirosyan_2ba4b28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2522853%2F1a77d9c1-a71b-4aa4-af46-47a88216d24f.png</url>
      <title>DEV Community: Artem Martirosyan</title>
      <link>https://dev.to/artem_martirosyan_2ba4b28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/artem_martirosyan_2ba4b28"/>
    <language>en</language>
    <item>
      <title>I Brought the ‘ssyoutube’ Trick to ChatGPT</title>
      <dc:creator>Artem Martirosyan</dc:creator>
      <pubDate>Mon, 14 Jul 2025 12:42:52 +0000</pubDate>
      <link>https://dev.to/artem_martirosyan_2ba4b28/i-brought-the-ssyoutube-trick-to-chatgpt-52m4</link>
      <guid>https://dev.to/artem_martirosyan_2ba4b28/i-brought-the-ssyoutube-trick-to-chatgpt-52m4</guid>
      <description>&lt;p&gt;Remember the old &lt;code&gt;ssyoutube&lt;/code&gt; trick? That magical moment when you could just tweak a YouTube URL to instantly download a video? I’ve always loved how simple that was. So I decided to bring the same spirit to ChatGPT.&lt;/p&gt;

&lt;p&gt;The result: &lt;strong&gt;pdfChatGPT&lt;/strong&gt; — a tiny web app that solved a frustration that kept bugging me.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ The Problem
&lt;/h2&gt;

&lt;p&gt;ChatGPT is fantastic, but it lacks a built-in "Export to PDF" button. We’re stuck with two not-great options:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Copy-pasting:&lt;/strong&gt; Ruins all formatting. Code blocks become a mess, tables break, images disappear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshots:&lt;/strong&gt; Need to stitch together endless images; text isn’t searchable.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It’s a nightmare, especially for long or technical threads.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ The “Just Change the URL” Solution
&lt;/h2&gt;

&lt;p&gt;Inspired by &lt;code&gt;ssyoutube&lt;/code&gt;, I wanted a solution that felt like a magic trick.&lt;/p&gt;

&lt;p&gt;Take your ChatGPT share link:&lt;br&gt;&lt;br&gt;
&lt;code&gt;https://chatgpt.com/share/abc123...&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Just add &lt;code&gt;pdf&lt;/code&gt; to the domain:&lt;br&gt;&lt;br&gt;
&lt;code&gt;https://pdfchatgpt.com/share/abc123...&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That’s it! The download for a perfectly formatted PDF (or Markdown) starts instantly.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/mtuuBxpfSxA"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;




&lt;p&gt;The tool makes sure everything comes out looking sharp:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Emojis and all text formatting are retained
&lt;/li&gt;
&lt;li&gt;✅ Code blocks keep their syntax highlighting
&lt;/li&gt;
&lt;li&gt;✅ Images are perfectly embedded
&lt;/li&gt;
&lt;li&gt;✅ Complex tables are clean and optimized (even wide ones!)
&lt;/li&gt;
&lt;li&gt;✅ The PDF has seamless page breaks, so nothing is cut awkwardly&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 How I Built It (The Fun Part)
&lt;/h2&gt;

&lt;p&gt;Of course, it wasn’t &lt;em&gt;that&lt;/em&gt; simple under the hood. Here are a few hurdles I had to clear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Broken Emojis:&lt;/strong&gt; Standard PDF renderers often choke on emojis. I fixed this by embedding a full emoji-supporting font (like Noto Color Emoji) and enforcing UTF-8 everywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syntax Highlighting:&lt;/strong&gt; This wasn’t preserved by default. I inject Highlight.js and a custom CSS theme into the headless browser before printing to PDF.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disappearing Images:&lt;/strong&gt; ChatGPT loads images asynchronously, so my backend waits, fetches, converts them to base64, and embeds them into the HTML before Puppeteer “prints” the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mangled Tables:&lt;/strong&gt; Long tables would overflow or break. Custom responsive CSS and smart margin tweaks finally fixed it.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 My Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js + Express
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rendering:&lt;/strong&gt; Puppeteer (headless Chrome)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting:&lt;/strong&gt; Vercel (ridiculously fast CI/CD and deploys)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔒 Privacy
&lt;/h2&gt;

&lt;p&gt;No chats are stored on our servers—everything is rendered on-the-fly and deleted instantly. Your data stays yours.&lt;/p&gt;




&lt;h2&gt;
  
  
  🙏 Shoutouts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ChatGPT&lt;/strong&gt; — for giving makers everywhere a platform to build for (and with!).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor&lt;/strong&gt; — for making the coding process smoother and way more fun.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💬 Give It a Try!
&lt;/h2&gt;

&lt;p&gt;It’s free, requires no login, and was built to solve one simple frustration.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://pdfchatgpt.com" rel="noopener noreferrer"&gt;https://pdfchatgpt.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What’s the most complex ChatGPT thread you have? Try and break my app with it—I’d love to hear your results in the comments!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>chatgpt</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
