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.

Usage:

const HummusRecipe = require('hummus-recipe')
const pdfDoc = new HummusRecipe('input.pdf', 'output.pdf')
const pdfOverlay = 'overlay.pdf'
pdfDoc
    .editPage(1)
    .overlay(pdfOverlay, 0, 0)
    .endPage()
    .endPDF()

hummus-error.log:

[ 06/02/2018 16:57:15 ] UnicodeString::FromUTF16BE, fault string - high surrogat encountered without a low surrogate
[ 06/02/2018 16:57:15 ] UnicodeString::FromUTF16BE, fault string - high surrogat encountered without a low surrogate

Result:

PDF file was not changed, just copied from input to output.

Question:

Can you please help me out with this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chunyenHuangcommented, Feb 6, 2018

I think there is a bug in the overlay coordinate. Can you try without the x and y?

pdfDoc
    .editPage(1)
    .overlay(pdfOverlay)
    .endPage()
    .endPDF()

Besides this, the source code is from https://github.com/galkahana/HummusJS/blob/fdfe49b60b15c13c692885bdf5d9aae18d303f92/src/deps/PDFWriter/UnicodeString.cpp#L208

0reactions
chunyenHuangcommented, Mar 26, 2018

@tmwd Hello do you still have this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Screen Overlay Detected Error - Android - Verizon
If you see a 'Screen overlay detected' error (see example image below), it's caused by conflict between a running app and a newly...
Read more >
How to Fix Screen Overlay Detected Error - Lifewire
In Advanced options, select Special app access > Display over other apps. Select the app suspected of causing the issue and toggle to...
Read more >
How to Fix the “Screen Overlay Detected” Error on Android
The biggest issue is that the setting for screen overlays is found in different spots on different manufacturers' handsets.
Read more >
How To Fix Screen Overlay Detected Issue On Android
How To Fix Screen Overlay Detected Error On Android? To fix the screen overlay detected issue follow the steps: Open the “Settings” app...
Read more >
Windows 10 Display overlay issue - Microsoft Community
Windows 10 Display overlay issue. Hi there, the other day on my windows laptop after I began to see weird boxes like lines...
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