<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Edit PDF content and actions in C&#43;&#43;</title>
    <link>https://docs.aspose.com/pdf/cpp/pdfcontenteditor-class/</link>
    <description>Recent content in Edit PDF content and actions in C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 13 Nov 2026 00:00:00 +0000</lastBuildDate>
    
	  <atom:link href="https://docs.aspose.com/pdf/cpp/pdfcontenteditor-class/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Cpp: Annotations in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/annotations-facades/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/annotations-facades/</guid>
      <description>
        
        
        &lt;p&gt;Create text annotations on an existing PDF page.&lt;/p&gt;
&lt;h2 id=&#34;annotation-tutorials&#34;&gt;Annotation tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-text-annotation/&#34;&gt;Add Text Annotations&lt;/a&gt; - Create an open text annotation titled Text Annotation on page 1.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Bind a PDF Stream and Save in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/bind-from-stream-and-save/</link>
      <pubDate>Mon, 09 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/bind-from-stream-and-save/</guid>
      <description>
        
        
        &lt;p&gt;Use &lt;a href=&#34;https://reference.aspose.com/pdf/cpp/aspose.pdf.facades/pdfcontenteditor/&#34;&gt;PdfContentEditor&lt;/a&gt; for this task. The examples below retain the original C++ code and API Reference steps.&lt;/p&gt;
&lt;h2 id=&#34;bind-from-stream-and-save&#34;&gt;Bind from stream and save&lt;/h2&gt;
&lt;p&gt;Bind the editor to a PDF input stream and save it to outputFile.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create &lt;a href=&#34;https://reference.aspose.com/pdf/cpp/aspose.pdf.facades/pdfcontenteditor/&#34;&gt;PdfContentEditor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Bind the PDF input with &lt;a href=&#34;https://reference.aspose.com/pdf/cpp/aspose.pdf.facades/facade/bindpdf/&#34;&gt;Facade::BindPdf()&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Save the resulting PDF with &lt;a href=&#34;https://reference.aspose.com/pdf/cpp/aspose.pdf.facades/pdfcontenteditor/&#34;&gt;PdfContentEditor&lt;/a&gt;::&lt;code&gt;Save()&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-cpp&#34; data-lang=&#34;cpp&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;Aspose.PDF.Cpp/Facades/PdfContentEditor.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;system/io/file.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;system/io/file_stream.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;system/string.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;namespace&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Facades&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Examples&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PDF_ContentEditor&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;using&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;namespace&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;System&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;using&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;namespace&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Aspose&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Pdf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;using&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;namespace&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Aspose&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Pdf&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Facades&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;BindFromStreamAndSave&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;inputFile&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;outputFile&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;auto&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;editor&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;MakeObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PdfContentEditor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;auto&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;inputStream&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;System&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;IO&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;File&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;OpenRead&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;inputFile&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;editor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;BindPdf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;inputStream&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;editor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Save&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;outputFile&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// namespace Facades::Examples::PDF_ContentEditor
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
      </description>
    </item>
    
    <item>
      <title>Cpp: Attachments in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/attachments-facades/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/attachments-facades/</guid>
      <description>
        
        
        &lt;p&gt;Add an embedded file attachment or remove document attachments.&lt;/p&gt;
&lt;h2 id=&#34;attachment-tutorials&#34;&gt;Attachment tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-attachment/&#34;&gt;Add Attachment&lt;/a&gt; - Attach the supplied file stream using its filename and a sample description.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/remove-attachments/&#34;&gt;Remove Attachments&lt;/a&gt; - Delete document attachments.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Document Actions in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/document-actions/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/document-actions/</guid>
      <description>
        
        
        &lt;p&gt;Set an additional document-open action or remove the existing open action.&lt;/p&gt;
&lt;h2 id=&#34;document-action-tutorials&#34;&gt;Document action tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-document-action/&#34;&gt;Add Document Action&lt;/a&gt; - Assign an alert script to the document-open additional action.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/remove-open-action/&#34;&gt;Remove Open Action&lt;/a&gt; - Remove the document-open action.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Drawing Annotations in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/drawing-annotations/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/drawing-annotations/</guid>
      <description>
        
        
        &lt;p&gt;Create line and polygon annotations through the content editor facade.&lt;/p&gt;
&lt;h2 id=&#34;drawing-annotation-tutorials&#34;&gt;Drawing annotation tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-line-annotation/&#34;&gt;Add Line Annotation&lt;/a&gt; - Create a red line annotation on page 1 with the specified endpoints, border, and line-ending settings.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-polygon-annotation/&#34;&gt;Add Polygon Annotation&lt;/a&gt; - Create a page 1 polygon annotation using the LineInfo vertex array.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Image Operations in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/image-operations/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/image-operations/</guid>
      <description>
        
        
        &lt;p&gt;Delete images from a PDF or replace an existing image.&lt;/p&gt;
&lt;h2 id=&#34;image-editing-tutorials&#34;&gt;Image editing tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/delete-all-images/&#34;&gt;Delete All Images from PDF&lt;/a&gt; - Call DeleteImage() without arguments to remove images from the bound PDF.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/delete-images/&#34;&gt;Delete Images from PDF&lt;/a&gt; - Delete image index 1 from page 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/replace-image/&#34;&gt;Replace Images in PDF&lt;/a&gt; - Replace image index 1 on page 1 with imageFile.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Multimedia in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/multimedia/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/multimedia/</guid>
      <description>
        
        
        &lt;p&gt;Create a movie annotation with a media file path.&lt;/p&gt;
&lt;h2 id=&#34;multimedia-tutorials&#34;&gt;Multimedia tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-movie-annotation/&#34;&gt;Add Movie Annotation&lt;/a&gt; - Create a movie annotation on page 1 using movieFile and the supplied display rectangle.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Stamps Management in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/stamps-management/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/stamps-management/</guid>
      <description>
        
        
        &lt;p&gt;Create and inspect stamps, read a stamp image, and move stamps by index or identifier.&lt;/p&gt;
&lt;h2 id=&#34;stamp-management-tutorials&#34;&gt;Stamp management tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/add-rubber-stamp/&#34;&gt;Add Rubber Stamp&lt;/a&gt; - Create a green Approved rubber-stamp annotation on page 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/create-stamp-sample/&#34;&gt;Create a Sample Image Stamp&lt;/a&gt; - Write a sample PNG image, create a one-page PDF, and apply an image stamp with ID 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/extract-image-from-stamp/&#34;&gt;Extract an Image from a Stamp&lt;/a&gt; - Read page 1 stamps and save the first stamp image as PNG. Throw an error if no stamps are found.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/list-stamps/&#34;&gt;List Stamps&lt;/a&gt; - Print the number of stamps returned for page 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/move-stamp-by-id-example/&#34;&gt;Move Stamp By ID&lt;/a&gt; - Move stamp ID 1 on page 1 to (200, 200).&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/move-stamp-by-index/&#34;&gt;Move Stamp By Index&lt;/a&gt; - Move stamp index 0 on page 1 to (200, 200).&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Text Operations in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/text-operations/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/text-operations/</guid>
      <description>
        
        
        &lt;p&gt;Replace matching text with optional text styling.&lt;/p&gt;
&lt;h2 id=&#34;text-replacement-tutorials&#34;&gt;Text replacement tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/replace-text-simple/&#34;&gt;Replace Text Simple&lt;/a&gt; - Set ReplaceAll scope and replace 33 with XXXIII followed by a space.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/replace-text-with-state/&#34;&gt;Replace Text With State&lt;/a&gt; - Replace software with SOFTWARE using blue, 14-point text and ReplaceAll scope.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Cpp: Viewer Preferences in C&#43;&#43;</title>
      <link>https://docs.aspose.com/pdf/cpp/viewer-preferences/</link>
      <pubDate>Fri, 13 Nov 2026 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/pdf/cpp/viewer-preferences/</guid>
      <description>
        
        
        &lt;p&gt;Read and update PDF viewer-preference flags.&lt;/p&gt;
&lt;h2 id=&#34;viewer-preference-tutorials&#34;&gt;Viewer preference tutorials&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/change-viewer-preferences/&#34;&gt;Change PDF Viewer Preferences&lt;/a&gt; - Read the existing viewer-preference flags and set the additional bit represented by 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/pdf/pdf/cpp/get-viewer-preferences/&#34;&gt;Get PDF Viewer Preferences&lt;/a&gt; - Print the current viewer-preference flags.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
