# Create Custom Paper Size on the fly ?

**URL:** <https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174>\
**Category:** General\
**Created:** [April 25, 2018, 12:15pm UTC](https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174 "2018-04-25T12:15:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 25, 2018, 12:15pm UTC](https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174/1 "2018-04-25T12:15:59Z")

</div>

When printing (to pdf \*) with a dedicated application, I need a custom paper size entry (Legal US is not tall enough).

For testings, I created one that fits my test #1.

Now, I extanded a bit with test #2 and I realize what (was) obvious thing: my print height is variable:

I print 6 images (landscape, resized for the Paper width; print in the whole available Paper Width). in each page.

That means different original with = different needed height.

I can compute the needed height, but I do not know how (and if it is possible) to create a Custom Paper Size (check the Page Setup dialog) on the flyu / by code.

Is it possible ? If so Clue(s) ?

TIA

- Once in pdf, it can be printed on paper

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [April 25, 2018, 3:15pm UTC](https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174/2 "2018-04-25T15:15:16Z")

</div>

When you create PDF with our [MBS Xojo DynaPDF Plugin](http://www.monkeybreadsoftware.de/xojo/plugin-dynapdf.shtml), you can define any paper size you like.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 26, 2018, 3:24am UTC](https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174/3 "2018-04-26T03:24:03Z")

</div>

Nice !

Unfortunately, my wallet cannot afford anythin not kostenlos ☹

That project is \< 75KB 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:11pm UTC](https://forum.xojo.com/t/create-custom-paper-size-on-the-fly/43174/4 "2020-10-29T19:11:33Z")

</div>


