0

I want to create a .jpg picture from .pdf with exactly these real dimensions to include this .jpg into my Mobile Phone Samsung Flip Z3 as specified here into my Android Studio Application. Can someone kindly give me an MWE saying hello world for the LaTeX source code which would have the working effective area with these exact dimensions?

Ingmar
  • 6,690
  • 5
  • 26
  • 47
user2925716
  • 1,940
  • Standalaone wnd minipage can specify a PDF with a given width and height. You might also look at a graphics editor to specify images by pixels size . I use GIMP to create wallpaper with at 16x9 aspect ratio. – John Kormylo May 22 '22 at 14:29
  • Not sure I follow exactly, but if you simply want to convert/resize a pdf => jpg, when and where does LaTeX come into play? – Ingmar May 22 '22 at 15:09
  • @Ingmar I'll try to explain. I want to create pdf with a specific size. The convertion then will be easy, I presume the size will be preserved by the online convertor. For that pdf I want it to have the precise size so that I do not need another resizing. – user2925716 May 22 '22 at 15:12
  • 1
    There are pdfTeX primitives \pdfpagewidth and \pdfpageheight. If you say (for example) \pdfpagewidth=14.5cm then the width of a virtual paper in the PDF is exactly 14.5cm. What do you need more? – wipet May 22 '22 at 15:17
  • 1
    That website is in Czech or something. I can't read it. But you can specify the output "paper" size with \usepackage[papersize={640pt,480pt}]{geometry} or whatever dimensions. You'll probably want to set the margin too. \usepackage[papersize={640pt,480pt},margin=0pt]{geometry}. – frabjous May 22 '22 at 15:17
  • See https://tex.stackexchange.com/questions/494227/output-images-of-math-with-169-aspect-ratio-using-standalone-package/494230?r=SearchResults&s=6%7C29.0974#494230 – John Kormylo May 23 '22 at 00:25

0 Answers0