We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
0

Inline align image in Draw

asked 2020-10-29 12:06:01 +0200

andileni gravatar image

updated 2020-10-29 16:30:18 +0200

Hello,

I want to set an image as inline in Libreoffice Draw. Unfortunately I was not able to achieve this.

image description

Edit: I want the qr code to be inline, so it can be centered inside the table cell on the right. Minimal example: C:\fakepath\mwe.odg

This is what I want it to look like: image description

edit retag flag offensive close merge delete

Comments

set an image as inline in Libreoffice Draw.

which element inline with which other element? Could you provide the sample file and tell us where you want to appear what.

Opaque gravatar imageOpaque ( 2020-10-29 12:54:39 +0200 )edit

@Opaque, of course I can. I want to qr code to be centered inside the tabel cell on the right. Currently it is simply moving around freely. In LO Writer, an images type can be set in its properties to character-mode, but I did not find a similar option in Draw. I added a sample file above.

andileni gravatar imageandileni ( 2020-10-29 13:02:52 +0200 )edit

From my perspective the only thing you could do is to place the QR code correctly and then to group the the two shapes table and QR code (To my understanding a table in Draw is nothing else than a dynamically created shape).

Opaque gravatar imageOpaque ( 2020-10-29 13:20:43 +0200 )edit

I definitely don't understand for what reason you insit on using Draw and therein the shapetype "table".
Draw has many very useful features, but the tables there are really poor.
For the part of your task you described, I feel sure, Writer with its TextTable and Frame objects and with the style concept applicable to them is by far more suitable. (Also Calc would support the task much better than Draw.)
In addition I suspect something of the kind you want to do to be a candidate for later wanting to automate a process of creation / insertion ...
This again is only poorly supported in Draw, and in specific concerning tables I wouldn't know any means to do it at all.
What do you need beyond the described task tempting you to use Draw?
See this example for a comparison:
C:\fakepath\ask273957presentingQRcodesInTables_1.odt

Lupp gravatar imageLupp ( 2020-10-29 17:45:48 +0200 )edit

@Lupp Thanks for the clarification. I switched to Writer and got what I wanted :)

andileni gravatar imageandileni ( 2020-11-02 11:13:07 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-10-29 13:35:46 +0200

ajlittoz gravatar image

There no notion of "inline" with Draw because it will not format lines and paragraphs. Draw works with objects which are positioned freely within the page.

Objects can be aligned relative to each other. This alignment is made against objects, not parts of objects. In your case, the objects are a table and the QR code.

  1. Click on the table (it is important to click on the table first because this will tell Draw the table is the reference object), then, holding Shift pressed, click on the QR code.
  2. Shape>Align>Right to send the QR code flushed with the right border of the table
  3. Shape>Align>Center (in the lower half of the menu) to center vertically the QR code
  4. Click anywhere to deselect and click again on the QR code
  5. Use the left/right arrow keys to shift horizontally the QR code to center it within the cell
  6. Shape>Arrange>Send to back: the QR code is now below the table
  7. Click to select the table
  8. Format>Area, Transparency tab to tune the transparency of the table

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

edit flag offensive delete link more

Comments

This helps but is not what 100% what I wanted :( Is it possible to select a singel cell as a single object? For further centering.

andileni gravatar imageandileni ( 2020-10-29 16:31:33 +0200 )edit

No as the cell is part of a table which is "visible" object.

What you can do is create a rectangle inside which you type your URL. You can thn center-align along both axes your rectangle and QR code. You group them to make a single composite object.

Create another rectangle with adequate dimensions (Format>Position & Size) f or your other "cell". Position/align the two "cells" and group them.

ajlittoz gravatar imageajlittoz ( 2020-10-29 16:40:19 +0200 )edit

Also see my comment on the question. IMO, Draw isn't suitable for the task. The mentioned comment contains an attached example of how it might be done in Writer.
By the way: LibreOffice has an integrated QR-code generator which is also accessible from Writer and Calc.

Lupp gravatar imageLupp ( 2020-10-29 17:53:35 +0200 )edit

Thanks to @Lupp and @ajlittoz for explaining the problem (Draw is no text processing app). I couldn't have done it better ;-) - Cheers

Grantler gravatar imageGrantler ( 2020-10-30 08:34:05 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-10-29 12:06:01 +0200

Seen: 64 times

Last updated: Oct 29 '20