ok but i m not be apble to do that ... where is the image create by viewpdf ?
It is usually in the cache
do you know the name of the image in the cache ?
It will be different every time you run the viewpdf.
I am not on my development computer at the moment, so maybe later....
Thanks for your help,
if i dont know the name of the image and if it change all the time it ll be difficulte to use it
but i tried to read a pdf with pdfview
when i use a pdfreader to read my original pdf it very good
but when i use pdfviewer, when i zoom it s not good, is it normal ?
You might want to try my pdf extension, which offers property Quality
Set the quality in dpi to render the pdf page. Default is 72 dpi
.https://puravidaapps.com/pdf.php
Taifun
why not i can try, but the probleme is not to read a pdf,
"Hi there,
I'm building an app that supplements an existing "PDF" to make it a 21/29.7 print.
I have a "PDF" file that I convert to "JPG" (on my pc), I place this "JPG" as a background image in a "vertical arrangement" (which takes up the whole screen), then I display some information about this "arrangement", then I create a "PDF" with extension "KIO4_pdf" (from this arrangement).
Everything works fine but the background image in the "PDF" is of poor quality (especially for a 21/29.7 print), the texts in the image are pixelated (not the ones I add on top), so that they aren't when I open the image and zoom in from my pc (up to a point of course, but the goal is to get quality for a 21/29.7 print).
I tried with "PNG" (it was not conclusive), I tried with a "JPG" of different quality, up to 4800/5940 pixels (increasing the quality during the "PDF" conversion - > "JPG" but that doesn't seem to change anything after a while), I tried with an "SVG" and the "SVGimages" extension (without ever managing to display a single image in my arrangement).
I noticed that the quality is a bit better when I set the 1st screen option "sizing" to "fixed" (instead of "response") but hey...
I'm calling on you because I don't know what to do? Does anyone have a strategy for me to solve this quality problem?
Thank you for your help, best regards,
"
The author of the extension @Juan_Antonio might know, if the quality can be improved while creating the pdf...
Taifun
Maybe, i ll wait his answer.
Else, do you know another aix to create pdf ? or to make what i want to do ?
Tanks for your help,
borrar_pdf_comprime.aia (13.7 KB)
@Jean-Paul
I have created a basic pdf, copy it to the /storage/emulated/0 directory (I use Android 9 and can easily copy it). Then I transfer it to my PC and read it with Foxit Pdf, I can zoom in and it doesn't lose sharpness.
thanks for your answer, but you dont use an image.
Put a image in background of the arrangement, next when you create the pdf and you can see that the image loose her quality ... all you write on the arrangement is very good except the image ...
Why ?
You can avoid all this by not using a pdf in the first instance. Use actual text.
Bonjour
Je ne comprends pas votre réponse, le but est de compléter un pdf que l'on me fourni avec des informations fournies a l'application pour produire un nouveau pdf de même qualité et imprimable.
Il faut bien que je parte de quelque chose pour récupérer le pdf original avant de le compléter. Je ne peux pas juste mettre du texte.
J'avais penser utiliser l'extansion KIO4_pdf, c'est pourquoi j'ai converti mon pdf en une image que j’insère en image de fond d'un arrangement, mais lors de la création du pdf l'image semble perdre sa qualité. Le probleme est peut etre la : L'image pert-elle déjà sa qualité lorsque je la place en image de fond (en prenant peut-être la définition maximal correspondant à l’écran du téléphone...)
Avez vous une autre solution a me proposer pour compléter un pdf existant ? Vous suggérez peut etre que je recrée complétement le pdf mais il y a de nombreux cadre et image. Savez vous comment faire un cadre que l'on pourrait mettre dans un arrangement ?
Bien cordialement,
borrar_pdf_comprime_v2.aia (4.9 MB)
Try changing the dimensions of the VerticalArrangement to 3000x1500
i already test it (with 5840 / 4800 the dimension of my image), so my image is bigger and what i write on si very little (but when i zoom is very good). But my image is always poor quality...
I dont know how i can solve this pobleme, maybe it s app inventor which scales my image and then it loose quality ... ?
thanls for your help,
Yes, that happens.
Can you share the image
, then perhpas we can advise on the best solution? You say you have to write on the image, are you using a canvas to do this ?
borrar_pdf_comprime_v2.aia (4.9 MB)
Bonjour,
Voici le fichier modifié avec une image (il faut que l'image soit dans un arrangement car je dois pouvoir écrire dessus pour compléter le pdf.
(n'importe laquelle convient, le problème n'est pas lié à l'image, je pense même que le problème ne vient pas de la création du pdf mais à la manière dont app inventor insère l'image dans un arrangement)
On peut modifier les dimensions de l'arrangement pour les mettre a la tailles de l'image 480/3509 format A4 mais cela ne change rien du tout
J'ai pris ce pdf : tableau_termin.pdf - Google Drive
que j'ai converti avec cela : Convertir PDF en JPEG – Extraire les images des PDF - gratuit
J'ai modifié dans screen1 sizing à fixed au lieu de response car l'image est ainsi meilleure même si ce n'est pas satisfaisant ...
Il suffit de comparer l'image d'origine en zoomant un peu avec le pdf créé en zoomant un peu pour voir la perte de qualité sur les écritures notamment.
Merci de votre aide.
I just took a screenshot of the pdf to make a png image, and used that in the test app.
The image quality is not great to start with, but I do not see much difference when converted to a pdf using the aia you provided.
Image (Screen1)
PDF view (Screen2)
But see that the actual text for the two labels at the bottom is much sharper and more distinct.
As suggested, you may have more success if you replicate the table in the app, instead of trying to extract a poor standard image from a pdf, then creating another pdf from that image.
Again, I am interested to know how you are writing on the image ?
Bonjour,
Il y a pourtant une grande différence entre la qualité de l'image d'origine et celle du pdf final en zoomant un peu. Je vous rappelle que le but est d'imprimer le pdf sur une page A4 (il me faut une qualité professionnelle). Je n'ai pas le temps pour le moment mais je ferai des copies d'écran.
Ma question est pourquoi et comment regler ce probleme.
Oui bien sur refaire entièrement le tableau serait une solution
Mais c'est tres difficile de refaire des cadres des lignes ... non ? En tout cas je ne sais pas faire.
Bien cordialement,