Comments (6)
hey friend, how are you?, I need your help, Besides that an error appears when showing some MS Office document, I have tried to use TIFFRenderer to see a .tiff file but in the browser it comes out completely white, it is not displayed, could you help me by indicating how to use this TIFFRenderer or how to use it if use DocViewerRenderers
this is my source
`
import React from 'react';
import './App.css';
import DocViewer, { DocViewerRenderers } from "react-doc-viewer";
function App() {
const docs = [
// { uri: "https://www.abbyy.com/media/14009/guide_english.pdf" },
{ uri: require("./docs/Captura de pantalla (1).png") },
{ uri: require("./docs/Doc1.pdf") },
{ uri: require("./docs/test.2p.in.tiff") },
{ uri: require("./docs/5526010020400101110027052018.tiff")}, // Local File
{ uri: require("./docs/Copia de CUADRO_REQ_UGPP - ULTIMO.xlsx")}, // Local File
];
return
<DocViewer
pluginRenderers={DocViewerRenderers}
documents={docs}
theme={{
primary: "#5296d8",
secondary: "#000000",
tertiary: "#5296d899",
text_primary: "#ffffff",
text_secondary: "#ffffff",
text_tertiary: "#00000099",
disableThemeScrollbar: false,
}} />
</div>
from react-doc-viewer.
Do you have any errors in the console?
from react-doc-viewer.
Also, If you quickly need a renderer for TIF files, you can create custom renderers.
https://www.npmjs.com/package/react-doc-viewer#custom-renderer
from react-doc-viewer.
I did that today but it doesn't work either, look at the code and the view, if you could please help me it would be very helpful and I would be grateful
from react-doc-viewer.
@drrc1709 Would it be possible to provide the exact tif file you are using, this may well be a bug with particular tiff files.
I only have a few example tif files and they render OK.
Please can you try version 0.1.5 to see if this helps / gives you any information?
from react-doc-viewer.
from react-doc-viewer.
Related Issues (20)
- 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
- Doc viewer buttons submit form
- pdfjs-dist-2.4.456.tgz: 1 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- react-pdf-5.0.0.tgz: 2 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- react-pdf-8.0.2.tgz: 1 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- License Policy Violation detected in picocolors-1.0.1.tgz - autoclosed HOT 1
- Dependency Dashboard
- Conent is repeating without styling
- Not working with Next JS version (0.1.11) HOT 2
- API "3.11.174" and Worker "4.2.67" Version Mismatch HOT 7
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.