-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert image in front of text #1087
Comments
If you want to repeat the image on every page, the only way right now is to put it in the header. |
Indeed, but the image in the header is behind the text. Can we create an artifice to put the image in the header in front of the text? |
We cannot detect when a page break is happening, except if you explicitly put one of course. |
Thank you, troosan. I can add that the scenario is: I have a document, with a single section, containing a table which can ocupy a page or more pages and I want to put a stamp/image on every page, in the same place, in front of the text from table. |
@valisirius
This resulted for me in 2 pages with the same image at the same relative page position. The receiving block must have something in it, for example, a newline:
nb: Not necessarily the image name, you can also drop a singleton blockname somewhere inside the description or alternative name, and use that blockname. As long as you see:
To test it: Just (temporarily) replace this file: you can also capture a pagebreak with getBlock() and insert it back as a "new page" creating element |
Insert a shape to the template word. Set the shape text like ${image}. The shape can set in front of text. Use setImageValue can insert image in front of text. |
Hello,
Please tell me if it is possible to insert an image in front of text and on every page, in the same position, when creating a new docx file.
This feature can be useful.
Thank you.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: