About 50 results
Open links in new tab
  1. get pdf point(x, y coordinates) of selected text or pdfelement from pdfjs

    Jun 21, 2020 · I have used pdf.js to view a pdf in a web-browser. Also, window.getSelection () to get the selected text. However, I want to get the pdf point or x, y coordinates of the selection, so that I can …

  2. Invalid XML document, The document does not have a root element

    May 12, 2011 · You're never calling doc.AppendChild(xmlroot); so although you've created the elements, you're never really putting them in the document. Hence it doesn't have a root element. …

  3. How to set image to fit width of the page using jsPDF?

    Apr 7, 2016 · For fit canvas width to the pdf I used this method: html2canvas(pdfElement, { scrollY: -window.scrollY }) . Additionally with x, y values from addImage() method you can set the pdf content …

  4. How do I use Claude Code with an existing Anthropic API Key?

    May 19, 2025 · Instead of going through claude console /login to create a new API key, I would like to use an existing Anthropic API key. How do I get Claude Code to do this? The /login command forces …

  5. Converting pdf to eps without rasterizing or changing fonts

    Jul 14, 2022 · -dNOCACHE has nothing to do with rasterisation; it's a debugging flag which has been (ab)used to prevent fonts being emitted in the output, and having them turn into paths instead. There …

  6. JavaScript to control checkbox selection in interactive PDF files

    Aug 31, 2020 · I am creating a series of checkboxes in an interactive PDF, and I have added Javascript action to clear all other options once one is selected. Checkbox 1, once clicked, clears checkboxes 2 …

  7. checking for scrollHeight of an element sometimes returning 0

    Nov 16, 2011 · So I am checking the the scrollHeight of some dynamically generated content to determine whether or not to include a more button in the content. The user can click the more button …

  8. PDFMake loop using canvas data doesn't keep correct order

    Jul 16, 2016 · The changes will place the rendered content into the content array in the same order as document.getElementsByClassName("pdfElement"); gets them. If you want the documents in the …

  9. PowerShell stuck in Constrained Language Mode - Stack Overflow

    Feb 6, 2024 · I'm a coding collage major, and I am using my school's computer to make a cross-platform script for Linux and Windows. I need to run the script to test it, but PowerShell keeps responding with …

  10. What do the symbols "=" and "==" mean in python? When is each used?

    Nov 11, 2025 · As MarkyPython already said. Assignment means you use the to assign the value on the right side to a variable on the left side. means that is equal to from here on. The expression tests if a …