<?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>Forem: Timur Bekir BULUT</title>
    <description>The latest articles on Forem by Timur Bekir BULUT (@informal061).</description>
    <link>https://forem.com/informal061</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%2F3774618%2F80819648-89ac-4cfe-9e97-4f03dad46026.png</url>
      <title>Forem: Timur Bekir BULUT</title>
      <link>https://forem.com/informal061</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/informal061"/>
    <language>en</language>
    <item>
      <title>I built a GPU-accelerated PDF renderer from scratch in C++</title>
      <dc:creator>Timur Bekir BULUT</dc:creator>
      <pubDate>Sun, 15 Feb 2026 23:07:05 +0000</pubDate>
      <link>https://forem.com/informal061/i-built-a-gpu-accelerated-pdf-renderer-from-scratch-in-c-9mn</link>
      <guid>https://forem.com/informal061/i-built-a-gpu-accelerated-pdf-renderer-from-scratch-in-c-9mn</guid>
      <description>&lt;p&gt;I've been working on a project called &lt;strong&gt;ManasPDF&lt;/strong&gt; — a PDF rendering engine written from scratch in C++ that uses Direct2D for GPU-accelerated rendering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why?
&lt;/h2&gt;

&lt;p&gt;Most PDF libraries are either expensive or slow. I wanted to see if I could build one from scratch with hardware-accelerated rendering. Turns out, you can — but it takes implementing 90+ PDF operators to get there.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GPU rendering&lt;/strong&gt; via Direct2D with automatic CPU fallback&lt;/li&gt;
&lt;li&gt;Font rasterization with FreeType (TrueType, CFF, Type1, Type3)&lt;/li&gt;
&lt;li&gt;7 image codecs (JPEG, JPEG2000, Flate, LZW, CCITT Fax, ASCII85, RunLength)&lt;/li&gt;
&lt;li&gt;AES-256 and PKCS#7 certificate encryption&lt;/li&gt;
&lt;li&gt;Glyph-level text extraction&lt;/li&gt;
&lt;li&gt;Page render cache (500MB), glyph cache (128MB)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Render Engine&lt;/td&gt;
&lt;td&gt;Direct2D (GPU) + FreeType&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Platform&lt;/td&gt;
&lt;td&gt;.NET 8.0 / WPF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native Core&lt;/td&gt;
&lt;td&gt;C++ (ManasPDFCore.dll)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;License&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Use it in your projects
&lt;/h2&gt;

&lt;p&gt;Available as a NuGet package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet add package ManasPDF --prerelease
dotnet add package ManasPDF.Wpf --prerelease
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Currently focused on getting the rendering solid. Once viewing is complete, I'm planning to add PDF editing capabilities.&lt;/p&gt;

&lt;p&gt;It's alpha stage — expect some rough edges with complex PDFs. Would love feedback, especially broken PDFs to test against.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Informal061/ManasPDF" rel="noopener noreferrer"&gt;github.com/Informal061/ManasPDF&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://thebigstudio.net/en/ManasPDF" rel="noopener noreferrer"&gt;thebigstudio.net/en/ManasPDF&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>dotnet</category>
      <category>cpp</category>
    </item>
  </channel>
</rss>
