-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Slide Count" field is arbitrarily added while exporting #50
Comments
thanks for the feedback, it is not possible to disable this.
|
Same here. Would prefer if it wasn't there and showed just my original slide number N times, same as if I was in presentation mode. |
This improved my situation: 'if slide.IsPageNumberVisible then
'fixateSlideNumber(doc, slide, i+1, numSlides)
'end if Now the style is correct (but the number is not). |
Alternatively, you can change the style manually in the fixateSlideNumber function. I did so like this: if shapeType = "com.sun.star.presentation.SlideNumberShape" then
copy = doc.createInstance("com.sun.star.drawing.TextShape")
'Call Tools.WritedbgInfo(shape)
slide.IsPageNumberVisible = False
slide.add(copy)
copy.setString(CStr(slideNr)) '& " / " & CStr(slideCount))
copy.Style = shape.Style
copy.Text.Style = shape.Text.Style
copy.Text.CharHeight = shape.Text.CharHeight
copy.Text.CharFontFamily = shape.Text.CharFontFamily
'copy.Text.CharFontName = shape.Text.CharFontName
copy.Text.CharFontName = "Arial"
'copy.Text.CharColor = shape.Text.CharColor
copy.Text.CharColor = RGB(255, 255, 255)
copy.Position = shape.Position
copy.Size = shape.Size
copy.TextVerticalAdjust = shape.TextVerticalAdjust
copy.TextHorizontalAdjust = com.sun.star.drawing.TextHorizontalAdjust.CENTER
end if For some reason, it didn't really get the styles of the master file page number correctly - so I just hardcoded it in there. |
Of this is not optimal. But I just changed |
Using a Master with the only "Slide Number" field, exported pdf contains "Slide Number / Slide Count" (see screenshot).
Is it an intended behavior? Is it possible to disable?
The text was updated successfully, but these errors were encountered: