Comments (7)
this library uses an external service to render documents, this external service cannot recognize local files,
Example:
external-service.com/src=http://localhost:8080/your-file.docx
in this case, the external-service
has no access to your local
files so u should provide a complete accessible URL,
something like:
http://your-website-name:8080/your-file.docx
OR
http://your-IP-address:8080/your-file.docx
from react-doc-viewer.
@akshayvdongave A custom renderer in the context of this package is very simple and documented.
A custom renderer for Microsoft files is 1000x more complex. The included Microsoft renderers will render uploaded documents , but not local documents.
from react-doc-viewer.
Duplicate of #66
from react-doc-viewer.
@mattmogford-alcumus
can you please give any sample code for custom renderer for docx or any type .
in documentation i got for image but i am got get solution for docx.
i want to show multiple type of documents so please help me for create custom renderer for docx
from react-doc-viewer.
Worked this way :
Give fileType
fileType: 'docx'
const urlData = !!path ? [{ uri: path, fileType: 'docx' }] : [];
<DocViewer
className="doc-viewer"
documents={urlData}
config={{
header: {
disableHeader: false,
disableFileName: false,
retainURLParams: false,
},
}}
pluginRenderers={DocViewerRenderers}
/>
from react-doc-viewer.
i am facing a issue with react-doc-viewer in nextjs i am getting this err
resolve you may need an appropriate loader to handle this file type , currently no loaders are configured to process this file."
please help
from react-doc-viewer.
@akshayvdongave This video may help you.
https://www.youtube.com/watch?v=E0aK6CKsSNg
from react-doc-viewer.
Related Issues (20)
- invalid hook call HOT 16
- xlsx,docx,not supporting HOT 6
- Support CSV HOT 1
- Language recognition error
- Uncaught ReferenceError: DataStream is not defined
- file type
- Can not load different files of same type
- Relative imports outside of src/ are not supported HOT 1
- Charge Money
- resolve you may need an appropriate loader to handle this file type , currently no loaders are configured to process this file."
- Could not open file using S3 signed URL HOT 6
- window is not defined in SSR HOT 3
- Error: Invalid hook call. Hooks can only be called inside of the body of a function component. HOT 3
- local files not rendering HOT 2
- For PDF Files, set a default Zoom level
- DOMException: The user aborted a request. HOT 1
- how to add custom zoom ?
- Support for AWS.storage.geturl() HOT 1
- XLSX, DOCX, PPTX not working HOT 1
- Docx, Doc file is not working i am passing base64data URI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-doc-viewer.