Questions tagged [slate]

Slate is a Python package that can extract text from a PDF file.

Slate, available at https://pypi.python.org/pypi/slate, takes as input a file-like object representing a PDF file and returns the text from the file.

78 questions
2
votes
0 answers

How to get slate indentation with increasing depth

how to get numbered list when Tab key press on slate editor currently i get only one numbered list ? export const toggleBlock = (editor, format) => { const isActive = isBlockActive(editor, format); const isList = LIST_TYPES.includes(format); …
LOVENEET SINGH
  • 193
  • 2
  • 9
2
votes
1 answer

Connecting Slate to Formik - is it useField?

Here's the React component I'm creating to host Slate: import React, { useMemo, useState } from "react"; import { Field, useField, ErrorMessage } from "formik"; import { Slate, Editable, withReact } from "slate-react"; const FormRichText = ({…
Rob
  • 1,297
  • 2
  • 16
  • 30
2
votes
0 answers

Slate content not changed

I'm new to react and slate and I'm trying to change editor text via jquery and make sure that the change is also reflected in the editor content. When I select a text (07/27/21, for example) on the editor and click on button Set date in my example…
elena
  • 123
  • 1
  • 11
2
votes
0 answers

SLATE crm integration api

i am not able to find SLATE CRM api so that i can fetch data from slate. My requirement is to fetch file from slate and put it to server location. Thanks in advance.
user1037452
  • 411
  • 1
  • 7
  • 15
2
votes
1 answer

Slate editor active state always false using isBlockActive from examples

I have created an editor from composing a couple of slates examples together, namely https://www.slatejs.org/examples/richtext and https://www.slatejs.org/examples/links However when I added these the active state for all block level nodes it…
Joe Methven
  • 518
  • 4
  • 15
2
votes
1 answer

Anyway to multithread pdf mining?

I have a code which is looking for a particular string sequence throughout a bunch of pdfs. The problems is that this process is extremely slow. (Sometimes I get pdf's with over 50000 pages) Is there a way to do multi threading? Unfortunately even…
Moo10000
  • 115
  • 11
2
votes
0 answers

Error when trying to start Slate: WebpackOptionsValidationError

Recently I've set up Slate using these steps to work on my Shopify themes locally. It worked fine, but after a while i got an error when attempting to npm start Slate in the terminal. I've tried updating npm and node and they are both the latest…
c.smits
  • 63
  • 2
  • 6
2
votes
1 answer

How to have collapsable headings in markdown?

I am using slate, https://github.com/lord/slate, for API documentation. Using slate, a markdown file is converted to HTML. I need to have collapsable sections in my final HTML page. I appreciate if you let me know about the best approach?
Pooneh
  • 67
  • 2
  • 10
1
vote
0 answers

module not found error when slate is deployed

module not found error shows up even though ihave installed and imported the slate.js this code is properly working on my local machine but on deployement this error is generated I tried reinstalling the deendencies and clearing the terminal…
1
vote
1 answer

Check if editor is currently focused with Slate

I'm trying to find a reliable way to find out if the slate editor is currenty focused or not. The editor should be in a focused state even when nested elements are selected. I've tried ReactEditor.isFocused(editor) But am seing really inconsistent…
Xen_mar
  • 8,330
  • 11
  • 51
  • 74
1
vote
0 answers

Slate React: cannot redefine element's text

I use Slate editor in my React app. I've created the custom inline tool called 'company'. Once 'company' button is clicked current Company name is pasted on the current position; Everything perfect there. I get the following JSON data saved to…
1
vote
0 answers

slate3k WARNING:pdfminer.layout:Too many boxes (106) to group, skipping

I'm trying to extract text from a PDF in python, but I get the following warning message which limits the amount of text for each page that is extracted. Is there any solution anyone can think of to resolve this issue? Code also…
1
vote
0 answers

onChange event not firing on mobile and smaller devices

I am trying to integrate the slate js editor here in my app and have successfully done that. Every is working fine . However, i noticed my state or value doesn't get set on mobile and smaller devices. Upon investigation and debugging, i realised the…
Nuru Salihu
  • 4,756
  • 17
  • 65
  • 116
1
vote
2 answers

ReferenceError: $ is not defined at dist/assets/theme.js?5556:274 in Shopify Slate theme

I using slate for shopify theme developement. Slate : https://github.com/Shopify/slate node -v : v10.16.0 npm -v : 6.9.0 slate -v : 0.14.0 Followed follwoing step 1) slate theme mydemo 2) slate build (created dist folder) 3) slate zip (upload…
user1868401
  • 33
  • 1
  • 6
1
vote
3 answers

react javascript arrow function without arrows?

I don't understand how this can work in javascript renderMarkButton(type, icon) { it looks like an arrow function, but without the arrows. Here's the context: class HoverMenu extends React.Component { renderMarkButton(type, icon) { const {…
Francis
  • 702
  • 9
  • 21