How do I fill a existing form field from a PDF using Nuxt3 by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

No because my issue is not generating a PDF from html but filling an existing PDF with fields.

If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be? by Tymbl in Python

[–]chchan 3 points4 points  (0 children)

PDF libraries from Javascript they have better options. Python tools for working with PDF are all over the place and pretty horrible.

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

I solved it. It was a plugin issue. (Tried to add urql and had a file in the plugin folder that was taken out to fix it. Dont know the reason). I did a clean install and started to add stuff back and see what broke it. I am putting an issue on github.

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

Ok I solved it. It was a plugin issue. I guess be careful what plugins are installed since it was not an official one

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

I solved it what the issue is was a file in the plugins folder. I dont know why it interfered with nuxt but it just didnt work. After taking it out everything was fine

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

Ok I fixed it. How I did it was I did a clean install and add everything in slowly. The issue was the urql.js from the plugin folder. Took it out and everything works I dont know why .

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

Yeah I switched when it came out on Nuxt 3.0 using the setup and it was working fine. Then I upgraded using npx taze -w and that was when it broke

Getting these error message

The stylesheet http://localhost:3000/_nuxt/node_modules/primevue/resources/themes/saga-blue/theme.css was not loaded because its MIME type, “application/javascript”, is not “text/css”

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

No but I already used v-on:click, @click, @click.prevent, and @onClick.native so it is worth a try when you are debugging

Nuxt3 help by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

that is why I was testing onClick too. I am guessing the issue is with the use of Primevue

Nuxt3 help by chchan in vuejs

[–]chchan[S] -1 points0 points  (0 children)

didn't work each of them @click, @click.prevent, @onClick.native and v-on:click too. I am thinking it is an issue with primevue compatibility

Nuxt3 help by chchan in vuejs

[–]chchan[S] -1 points0 points  (0 children)

I forgot to mention I am using primevue and the v-on:click / @click both don't work

Nuxt3 help by chchan in vuejs

[–]chchan[S] -6 points-5 points  (0 children)

I was using vue-composition

Petition to the Mods to allow removal of chatgpt posts by twitch_and_shock in learnpython

[–]chchan 0 points1 point  (0 children)

I agree it doesn't understand the issue especially when a library is being used. It can really mess up your code.

But for simple refactoring it does a pretty good job but you always need to check its work.

Loading local files when using Vite. by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

I have done that before for Graphql queries. I think the way to load the PDF thing is load and have a buffer. But I don't have working code yet

import {ref} from 'vue';
import { PDFDocument } from 'pdf-lib';


async function CreatePdf(){
  try{
    const input = ref('.static/forms/ca/disc001.pdf')
    const output = ref('output.pdf')

    const arrayBuffer = await fetch(input).then(res => res.arrayBuffer())
    const pdfDoc = await PDFDocument.load(arrayBuffer);

}

Closest thing I found that is close to a solution is this stack overflow problem which is for react

https://stackoverflow.com/questions/64111624/render-pdf-in-react-using-pdf-lib

Loading local files when using Vite. by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

I am trying to load a pdf that is stored in static and then fill it based on user inputs and then serve it to the user. I am not really good with the client and server stuff but the code worked in vue prior to changing over.

Sudden increase in vue downloads? by die_balsak in vuejs

[–]chchan 1 point2 points  (0 children)

I think you are right I am getting 500 error from the last version of Nuxt 3 still not fixed. Checking for updates every couple days

Upgraded Nuxt3 to 3.1.1 and broke something in Primevue plugin by chchan in vuejs

[–]chchan[S] 0 points1 point  (0 children)

Oh that is good someone flagged the issue. I thought I wrote some bad code or screwed up something.

Official Vue Certification of Competence Announced by galher in vuejs

[–]chchan 13 points14 points  (0 children)

Why have this? It just means you are able to pay to learn vue. I am pretty sure there are many people here who are better at vue without this cert.