Comments (2)
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.
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)
- Doesn't work on OSX, need to change sed flag HOT 7
- What if PDF size is not either 4:3 nor 16:9? HOT 1
- Altering ImageMagick policy.xml when installed using Homebrew HOT 2
- Policy.xml problems ImageMagick-7 HOT 1
- No such file or directory HOT 1
- How to change output resolution HOT 2
- /bin/bash is not working on NixOS
- Doesn't work in Ubuntu 18.04 Error with extraction HOT 2
- Conversion error even after policy.xml is changed as per README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf2pptx.