Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add Image (Avatar) #90

Open
Al-Fareed opened this issue Feb 2, 2024 · 4 comments
Open

Not able to add Image (Avatar) #90

Al-Fareed opened this issue Feb 2, 2024 · 4 comments

Comments

@Al-Fareed
Copy link

Al-Fareed commented Feb 2, 2024

I tried adding avatar. It displays in the resume preview section, when I download the pdf, The image is removed. It doesn't come in pdf after downloading the resume

Also I am getting an error img.attribute is not a function, When I add <Image { including other attributes as well }/> tag
File : components/Resume/ResumePDF/index.tsx
`
import Image from "next/image";
import Logo from "public/assets/TVLogo.png"
..all the code

         <Image src={Logo} alt="logo" height={70} width={100} />
        <ResumePDFProfile
          profile={profile}
          themeColor={themeColor}
          isPDF={isPDF}
        />
        {showFormsOrder.map((form) => {
          const Component = formTypeToComponent[form];
          return <Component key={form} />;
        })}`

Error:
Unhandled Runtime Error TypeError: img.getAttribute is not a function

@vaibhav1663
Copy link

Anyone working on this ?

@Al-Fareed
Copy link
Author

Try with Image tag of react-pdf by importing the below statement

import Image from "react-pdf";

if it works please react with 👍

@vaibhav1663
Copy link

Getting same issue image is visible in downloaded pdf

@vaibhav1663
Copy link

Screenshot 2024-02-20 143347
How is this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants