Bug 117339 - FILESAVE Slide numbers are lost when saving as PPTX
Summary: FILESAVE Slide numbers are lost when saving as PPTX
Status: RESOLVED DUPLICATE of bug 59323
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.1.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-29 21:08 UTC by c3f38p+e9pr063ckikkw
Modified: 2019-05-09 09:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Simple Slide in OO-Format with number (and footer text) (12.55 KB, application/vnd.oasis.opendocument.presentation)
2018-04-29 21:12 UTC, c3f38p+e9pr063ckikkw
Details
Simple Slide (same as attachment #1) saved as PPTX (31.67 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2018-04-29 21:13 UTC, c3f38p+e9pr063ckikkw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description c3f38p+e9pr063ckikkw 2018-04-29 21:08:55 UTC
Create some slide. Make sure master has page numbers and add page / slide number to the slide.

Save in OpenOffice-Format and in Microsoft Powerpoint PPTX format.

Close file and reopen PPTX file.

Slide numbers are gone, they've likely never been saved in PPTX in the first place, as MS Powerpoint-Viewer (https://www.microsoft.com/en-us/download/details.aspx?id=13) doesn't show them either.

This happens on several testet LibreOffice variants (e.g. 4.1.6.2 Linux, 5.4.6.2 Windows) up to and including 6.0.3.2 (x64) Windows and Linux.
Comment 1 c3f38p+e9pr063ckikkw 2018-04-29 21:12:03 UTC
Created attachment 141767 [details]
Simple Slide in OO-Format with number (and footer text)
Comment 2 c3f38p+e9pr063ckikkw 2018-04-29 21:13:11 UTC
Created attachment 141768 [details]
Simple Slide (same as attachment #1) saved as PPTX
Comment 3 c3f38p+e9pr063ckikkw 2018-04-29 21:32:36 UTC
It seems noteworthy that there is a field with type "slidenum" in  ppt/slideMasters/slideMaster1.xml but no (corresponding) entry in ppt/slide1.xml.

The "solution" in https://stackoverflow.com/questions/36190387/how-can-i-add-slide-numbers-to-a-powerpoint-presentation-using-open-xml-net-sdk indicates there ought to be such a field.

Indeed, adding
<p:sp>
        <p:nvSpPr>
          <p:cNvPr id="127" name="CustomShape 4"/>
          <p:cNvSpPr/>
          <p:nvPr>
            <p:ph type="sldNum"/>
          </p:nvPr>
        </p:nvSpPr>
        <p:spPr>
          <a:xfrm>
            <a:off x="8741520" y="6247440"/>
            <a:ext cx="2840400" cy="472680"/>
          </a:xfrm>
          <a:prstGeom prst="rect">
            <a:avLst/>
          </a:prstGeom>
        </p:spPr>
        <p:txBody>
          <a:bodyPr lIns="0" rIns="0" tIns="0" bIns="0"/>
          <a:p>
            <a:pPr algn="r"/>
            <a:fld id="{BE8C60C3-C7BB-4A63-A38B-623C61B19D0D}" type="slidenum">
              <a:rPr b="0" lang="en-US" sz="1400" spc="-1" strike="noStrike">
                  <a:solidFill>
                  <a:srgbClr val="006699"/>
                  </a:solidFill>
                <a:latin typeface="Arial"/>
                <a:ea typeface="Arial"/>
              </a:rPr>
              <a:t>&lt;number&gt;</a:t>
            </a:fld>
            <a:endParaRPr b="0" lang="en-US" sz="1400" spc="-1" strike="noStrike">
                  <a:solidFill>
                  <a:srgbClr val="006699"/>
                  </a:solidFill>
              <a:latin typeface="Arial"/>
                <a:ea typeface="Arial"/>
            </a:endParaRPr>
          </a:p>
        </p:txBody>
      </p:sp>

just before </p:spTree> seems to create a slide number which does not vanish on saving / reopening.
Comment 4 c3f38p+e9pr063ckikkw 2018-04-29 21:38:19 UTC
Well, obviously there seems more to it, as not only slide number but also footer and maybe other fields get lost upon saving as PPTX and reopening.

For me footer and page / slide number are quite important e.g. for collaboration or printouts and thus would be very good to have.
Comment 5 raal 2018-04-30 18:13:39 UTC

*** This bug has been marked as a duplicate of bug 111860 ***
Comment 6 Timur 2019-05-09 09:59:39 UTC

*** This bug has been marked as a duplicate of bug 59323 ***