Skip to content

Docx preview size #303

@JonathanArke

Description

@JonathanArke

Hi everyone!

I'm trying to fit the docx file into this small box, its a 140x17

0 box, but it can't seems possibile to do it.
I tried many time chaning style, className and zoom props, i also gave to #proxy-renderer and #msdoc-renderer div the height: 100%. This helped with the .pptx file but not with the doc and docx file.

Do you have any idea how to solve this?

<ReactDocViewer
      key={`${key}-${src}`}
      documents={[{ uri: src, fileType: extension }]}
      pluginRenderers={DocViewerRenderers}
      prefetchMethod="GET"
      className={cn("h-full w-full", props.className)}
      config={{
        header: {
          disableHeader: true,
          disableFileName: true,
          retainURLParams: false,
        },
        csvDelimiter: ",",
        pdfZoom: {
          defaultZoom: props.zoom ?? 1.5,
          zoomJump: 1.5,
        },
        pdfVerticalScrollByDefault: true,
        noRenderer: {
          overrideComponent: NoPreviewComponent,
        },
      }}
/>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions