question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding content at the beginning after switching page

See original GitHub issue

Switching pages in 0.7.0 is very handy, and solves a lot of problems. However, to add a watermark (e.g. transparent background image) it’s proving to be a little more complicated.

I had a quick look at the code and how content was added to each page before they’re flushed but if I understand correctly, it’s actually written just not “finished”, so there’s no way to go back.

In this case, would it be a good idea to add another stream, on the same page, which would be written before the main stream and to which you could add content after switching. I’m not sure about the feasibility because the PDF format seems pretty complicated, but maybe it’s an option?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sly7-7commented, Jan 22, 2019

Is there a way to remove the listener ? For example I want to add some background image only when pages are created for me automatically by text wrapping.

0reactions
MathieuLoutrecommented, Apr 7, 2015

Makes sense. With the new option that’s been merged, the event system makes sense. I’ll have a go on another branch and submit a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start page numbering later in your document - Microsoft Support
Set your document's page numbering to start on the second page, and choose another ... Go to Insert > Header or Footer >...
Read more >
Add a title, heading, or table of contents in a document
Make a title or heading · On your computer, open a document in Google Docs. · Select the text you want to change....
Read more >
Switching templates in version 7.0 - Squarespace Help Center
When you switch to a new template, you change your site's design and structure, but most of your content stays intact. You can...
Read more >
Page thumbnails and bookmarks in PDFs, Adobe Acrobat
(This option is on when checked, and off when not checked.) Change the text appearance of a bookmark. You can change the ...
Read more >
Add text to your iMovie project - Apple Support
You change the title style at any time, while retaining any edits you've already made: With your project open, tap the clip in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found