MarkupUK / paperFramework

A framework with schema, schematron and other support for editing of Markup UK papers
Apache License 2.0
1 stars 1 forks source link

tiny images because of auto-scaling #38

Closed Markup-Fanatic closed 1 year ago

Markup-Fanatic commented 1 year ago

I'm struggling with tiny images and/or half empty pages in the PDF output because of auto-scaling. The attribute figure/mediaobject/imageobject/imagedata/@width seems not to have an effect.

Therefore https://github.com/MarkupUK/paperFramework/issues/37 as a workaround... ;)

Maybe it's also related to https://github.com/MarkupUK/paperFramework/issues/8

Markup-Fanatic commented 1 year ago

rmt_004588 rmt_004589

tgraham-antenna commented 1 year ago

Try adding width="100%" scalefit="1" contentdepth="100%" to <imagedata>.

I made similar changes in https://github.com/MarkupUK/MUK-proc/pull/5/commits/9db15fddf18b20cb7ea665e4c623cf4ac5b342d0# back in 2021, so presumably that worked for that paper.

Markup-Fanatic commented 1 year ago

That worked like a charm. Thanks @tgraham-antenna!

tgraham-antenna commented 1 year ago

Noted as working.