I am preparing pdf's with an image, a description and a QR code linking to that image hosted on the web.

However for now the QR code is always positioned just bellow the description. I would like to have it always at the same position at the bottom right, not matter how long the description is.

m = Import[
    exportIm = 
          SpanFromLeft}, {TextCell[
           Row[{"balabalaablabalb balabalbalbalba"}], 
           TextJustification -> 1, Hyphenation -> False], 
          SpanFromLeft}, {}, {"Notes: "}, {SpanFromLeft, 
          Item[BarcodeImage["123456789", "QR", 7], Alignment -> Right]}}, 
        Frame -> {{False, False}, {True, True, True, False}, {False}}, 
        BaseStyle -> ImageSizeMultipliers -> 1], 7, 
       FontFamily -> "Helvetica", Background -> Gray], Background -> Gray,
       ImageSize -> {210, 297}*2]


enter image description here

But what I would like is (QR code bottom right):

enter image description here


1 Answer 1


Change {SpanFromLeft, Item[BarcodeImage["123456789", "QR", 7], Alignment -> Right]} to

{Item[BarcodeImage["123456789", "QR", 7], Alignment -> Right], SpanFromLeft}

and {"Notes:"} to

{Item["Notes:", Alignment -> { Left, Top}, ItemSize -> {Full, Scaled[.65]}]}

to get

enter image description here

  • $\begingroup$ I see that I never thanked you for that answer. I am sorry ! Well, thank you very much !! $\endgroup$
    – james
    Sep 19, 2018 at 6:58
  • $\begingroup$ @james, my pleasure; thank you for the accept. $\endgroup$
    – kglr
    Sep 19, 2018 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.