c3founder / roam-enhancement Goto Github PK
View Code? Open in Web Editor NEWCollection of JavaScript extensions for RoamResearch.
Collection of JavaScript extensions for RoamResearch.
Solve the CORS issue or handle it on the server-side.
Have you experienced this problem?
Great project, has enormous potential. Some feedback:
roam/js/pdf/data
) clutter up my database. They will presumably start slowing down Roam's search after many annotations on many pdf's. Maybe the data can be stored elsewhere, like e.g. the 'data blocks' used by the Excalidraw plugin?(Another issue is low resolution images extracted via area highlight, and lower-impact styling of these area highlights. I filed those in the react-pdf-highlighter repo.)
Installed PDF Enhanced on Roam today, both JS and CSS.
The highlight options working, including the references etc, but these icons on the PDF itself or within the highlights are not showing.
I use Roam on Apple devices mainly.
Import of CSS is above all other entries.
Thoughts anyone?
iframe will push the message deleted: {highlight}
It only works in the child mode now. setting it to the cousin mode is not having any effect
In the past the extension used to work, but now it freezes every time. Title grab works though. This is what happens now:
Has anyone else had this problem?
I have a number of issues with the PDF Highlighter:
I'm using Vivaldi on Windows.
Things tried:
I was using the older RTL-LTR js code,
I just updated to the new code, and it doesn't work on my roam despite refreshing
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "https://c3founder.github.io/Roam-Enhancement/enhancedLanguage.js";
document.getElementsByTagName("head")[0].appendChild(s);
any ideas what could cause that?
any chance that ROAM42 might be the cause?
would love to get your assistance in getting it to work
Hey!
First of all, thank you for this amazing add-on for Roam! It works great. The only thing I'm struggling with is a preview of a PDF on mouseover. The problem is that there is no page icon visible (the brackets ar empty).
My current setup:
I have both JS and CSS latest versions installed.
Platform: MacOS/Brave Browser (all shields down)
Thanks for any help!
Rob.
Not working anymore
Enhancement:
Can you make it work like Logsec-app pdf handling
When addColoredHighlight is set to true, it adds the colour tag to the highlight but the highlight in the outline always shows as yellow.
The link from the extracted highlight to the position in the PDF stopped working for me. The link had a round shape previously. Now it is rectangular and doesn't move the focus to the highlight in the PDF.
This seems to appear more often in the right sidebar. It sometimes helps to reload the corresponding PDF by entering the edit mode of the PDF block.
After the latest rr update, the timer stopped working. Not sure if it’s related
I have some embedded PDFs that are uploaded in the standard way (drag & drop, such that the file is stored at https://firebasestorage.googleapis.com), and some others that are shared from Dropbox (e.g. https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1).
When PDF highlighter is disabled, both types of URLs load properly as PDF embeds in Roam Research. However, when PDF highlighter is enabled, the Dropbox URLs do not load, and the following error is shown:
Access to fetch at 'https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1' from origin 'https://roampdf.web.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
GET https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1 net::ERR_FAILED
e @ fetch_stream.js:134
value @ fetch_stream.js:77
(anonymous) @ api.js:1543
(anonymous) @ message_handler.js:329
value @ message_handler.js:328
_onComObjOnMessage @ message_handler.js:150
I thought this might be because the Google Cloud PDFs are requested with an API token, but even if you remove the token, it still loads fine.
Is there any way around this? It would be awesome to have all my PDFs stored in Dropbox, where they're linked to corresponding Zotero items, and then have the corresponding notes in Roam for those papers that could still reference the same (rather than duplicated) file -- because then if I add additional annotations on the PDF (e.g. some handwritten notes on iPad), they'll still show up on the PDF in Roam.
Can I create my own PDF server to make pdf work?
function startC3PdfExtension() {
var ccc = window.ccc || {};
var c3u = ccc.util;
/*******************************************************/
/**********************Main BEGIN***********************/
// const serverPerfix = 'http://localhost:3000/?url=';
const serverPerfix = 'https://roampdf.web.app/?url=';
const pdfChar = ' ';
Hi, I installed the extension and it shows the popup window of 'Add Highlight' upon dragging a text on the pdf file (uploaded into a roam block). However, even if I click on 'Add Highlight' and the color of the text changes, no child or cousin block is created.
Additionally, the parameter config in roam/js codeblock is not taking any effect: I set the parameters as following but the window size of the pdf document is still very small:
Please see a short video of what is happening here: https://recordit.co/hjO3XJDvqX
Do you have any suggestions on what may be causing this problem?
Thank you!
Text highlighting works on iOS flawlessly as far as I can see (using the Pen), which is fantastic since I can read PDFs and annotate them on the tablet. Area annotation does not work since the ALT key is missing, however. One solution might be to add a button that allows switching between area and text annotation. That seems to be related to this pull request for react-pdf-highlighter
Hello developers. I've encountered a bug while using it.
I am a user with Chinese as the common language.Everything is fine when timer-activated.running, but when I pause, it becomes 0s. And when I mouse click the block again, all the time accumulation is cleared. Other functions are fine.
When I click to his reference screen. I found out that it is stored in Chinese format 'AM/PM',
Maybe this is the reason for the error? Even if I change the system language to English, he still recurs.Perhaps replacing all the time variables with 24-hour binary could improve it?
Traverse the PDF doc using highlights.
Highlights were not shown in linked page
Hi - in my version of Roam (both the MacOS version and through Chrome) if I shift+click on an image to activate OCR, it just zooms into the image. Same if I cmd+click or option+click. Is there anyway to assign the OCR process to another key combination?
Both on the pdf and in roam with specific tags to make them filterable.
Unsuccessful PDF loads into Roam when Dropbox and PDF Highlighter extensions are active. Any chance you could look at the cause of conflict?
Thanks
blocked by agentcooper/react-pdf-highlighter#88
Hi, thank you again for this extension.
It's become indispensable for my research workflow.
One feature I constantly need while reading a pdf with this extension is
the ability to jump back to the original page after clicking the reference/citations.
I'm not sure if it's possible to keep a history of the exact cursor locations,
but even just being able to jump back to the previous page with a shortcut or via a button-clicking
would be really nice.
Good for incremental reading.
Currently, you can have a highlight for this. Need to change it to a pin.
Currently PDF highlighter doesn't work for local PDFs. From the dev console it looks like it's blocked from accessing it due to CORS:
?url=http://localhost:3333/local-asset/.../....pdf:1 Access to fetch at 'http://localhost:3333/local-asset/.../....pdf' from origin 'https://roampdf.web.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Any idea if there would be a way around this, or is it simply not possible for plugins to access local files in Roam?
The notepad icon does not work consistently. It doesn't translate the block reference to plain text.
Highlights initially appear on the PDF, but they do not create children below the PDF and the highlighting on the PDF disappears upon refresh.
I want to use the counter in an attribute--For example, to count the number of sodas per day. When I create an attribute table, it shows the counter with the value of 0 even if 5 is the count on the original page. Is it possible at all to get the correct number?
Thanks, in advance!
Jen
I have a new macbook pro m1 and I am using the roam research desktop app and I am finding some inconsistent behavior on the highloighted pdfs, which I believe stems from an update
Is there a way to solve this issue?
Hi :)
Thanks
(code block is indented under {{[[roam/js]]}})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.