GithubHelp home page GithubHelp logo

Comments (2)

phelps-matthew avatar phelps-matthew commented on August 16, 2024 1

Yes, this worked great. As you had mentioned, I realized the ratio of cx/cy gave the right aspect but wasn't sure what to use as their absolute magnitude. The values you gave here seemed to work well. Thanks!

from pdf2pptx.

ashafaei avatar ashafaei commented on August 16, 2024

Thanks for the nice comment!
The default aspect ratio is 4:3. If the $makeWide flag is active, it would change the resolution of the final PowerPoint project to 16:9.

The code above searches for pat, the pattern for 4:3 screen, and replaces it with wscreen, the pattern for 16:9 screen, in the PowerPoint configuration file ../presentation.xml. About the numbers in the pattern, I'm not sure how exactly they correspond to the slide size, other than they have the same relative aspect ratio as the 4:3 or 16:9.

If you want to make it 16:10, I'd recommend trying this instead:

if [ "$makeWide" = true ]; then
	pat='<p:sldSz cx=\"9144000\" cy=\"6858000\" type=\"screen4x3\"\/>'
	wscreen='<p:sldSz cy=\"7620000\" cx=\"12192000\"\/>'
	call_sed "s/${pat}/${wscreen}/g" ../presentation.xml
fi

Please let me know if it works.

from pdf2pptx.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.