Answers.Body: <p>Okay, so I found a few answers elsewhere on Stack Overflow that answers my question. Very few programs can perform this process on a PDF, so you'll need to do it by hand in a plain-text editor that can handle files tens of megabytes large and won't choke on or corrupt the binary data in the embedded images. I used <code>vim</code> for this.</p>
  <p>Search for the string <code>Catalog</code> in the PDF, then in the opening double angle brackets <code>&lt;&lt;</code> add the following:</p>
  <pre><code>/PageLabels &lt;&lt; /Nums [
  0 &lt;&lt; /P (Front Cover) &gt;&gt;
  1 &lt;&lt; /P (Front Cover, Inner) &gt;&gt;
  2 &lt;&lt; /S /D &gt;&gt;
  26 &lt;&lt; /P (Back Cover, Inner) &gt;&gt;
  27 &lt;&lt; /P (Back Cover) &gt;&gt;
  ] &gt;&gt;
  </code></pre>
  <p>Making the relevant changes for your PDF. These were just the particular page numbers and options relevant to me. The first number is the page number, starting from 0. The /P says that I want the text in parentheses to be the page title. The /S /D says that I want to start the numbering in Arabic numerals with page 1 being the third page of the PDF. There are a lot of options to use here. More information about this process and the available options can be found at these links:</p>
  <p><a href="https://askubuntu.com/a/347338">https://askubuntu.com/a/347338</a></p>
  <p><a href="https://superuser.com/questions/232553/how-to-change-internal-page-numbers-in-the-meta-data-of-a-pdf">https://superuser.com/questions/232553/how-to-change-internal-page-numbers-in-the-meta-data-of-a-pdf</a></p>
  <p><a href="https://www.w3.org/TR/WCAG20-TECHS/PDF17.html#PDF17-ex2" rel="nofollow noreferrer">https://www.w3.org/TR/WCAG20-TECHS/PDF17.html#PDF17-ex2</a></p>
  <p><a href="https://newbedev.com/renumber-pages-of-a-pdf" rel="nofollow noreferrer">https://newbedev.com/renumber-pages-of-a-pdf</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-11T03:12:34.160Z
Answers.LastActivityDate: 2022-06-11T03:12:34.160Z
Answers.UserDisplayName: VHS
Body: <p>I'm trying to export a PDF of a scanned book. Regardless of whether I try to use GIMP or LibreOffice Draw, I can't seem to name any of the cover pages! I want to have the page numbers on the exported PDF match the page numbers in the lower-right corner of the document, but I can't figure out how to make either program do this, nor do I know which one to use if neither is capable of this.</p>
  <p>There's a front cover, a back cover, and each cover has something printed on its inside. I want to give these 4 pages special names to keep the numbering for the actual book content accurate. How do I accomplish this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-08T21:33:47.017Z
Comments.Text: export to what format?
Comments.UserDisplayName: idiotprogrammer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-08T23:57:38.300Z
Comments.Text: To PDF. I have scanned pages in .png format, and I'm trying to reassemble them into a PDF for digital distribution. I'd like the cover pages to not mess up the numbering for the content pages.
Comments.UserDisplayName: VHS
Tags: <pdf>
Title: How can I "name" PDF pages?
UserDisplayName: VHS
ThreadText: # How can I "name" PDF pages?
  
  (Asked by: username_0 on 2022-06-08)
  
  I'm trying to export a PDF of a scanned book. Regardless of whether I try to use GIMP or LibreOffice Draw, I can't seem to name any of the cover pages! I want to have the page numbers on the exported PDF match the page numbers in the lower-right corner of the document, but I can't figure out how to make either program do this, nor do I know which one to use if neither is capable of this.
  
  There's a front cover, a back cover, and each cover has something printed on its inside. I want to give these 4 pages special names to keep the numbering for the actual book content accurate. How do I accomplish this?
  
  **Tags:** pdf
  
  > **Comments:**
  > **username_1**: export to what format?  
  > **username_0**: To PDF. I have scanned pages in .png format, and I'm trying to reassemble them into a PDF for digital distribution. I'd like the cover pages to not mess up the numbering for the content pages.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-06-11. Score: 3 | Accepted answer
  
  Okay, so I found a few answers elsewhere on Stack Overflow that answers my question. Very few programs can perform this process on a PDF, so you'll need to do it by hand in a plain-text editor that can handle files tens of megabytes large and won't choke on or corrupt the binary data in the embedded images. I used vim for this.
  Search for the string Catalog in the PDF, then in the opening double angle brackets << add the following:
  /PageLabels << /Nums [
  0 << /P (Front Cover) >>
  1 << /P (Front Cover, Inner) >>
  2 << /S /D >>
  26 << /P (Back Cover, Inner) >>
  27 << /P (Back Cover) >>
  ] >>
  
  Making the relevant changes for your PDF. These were just the particular page numbers and options relevant to me. The first number is the page number, starting from 0. The /P says that I want the text in parentheses to be the page title. The /S /D says that I want to start the numbering in Arabic numerals with page 1 being the third page of the PDF. There are a lot of options to use here. More information about this process and the available options can be found at these links:
  https://askubuntu.com/a/347338
  https://superuser.com/questions/232553/how-to-change-internal-page-numbers-in-the-meta-data-of-a-pdf
  https://www.w3.org/TR/WCAG20-TECHS/PDF17.html#PDF17-ex2
  https://newbedev.com/renumber-pages-of-a-pdf
  
  
  ---
  
  