Neopdf - Forum

Forum Navigation
You need to log in to create posts and topics.

Neopdf

Good morning

I have a problem with neopdf.
I created a mobile app to be able to view data and download it.
Nothing is displayed in the iframe, and it doesn't download the document.
I use Voltbuilder to create the app on android.
How can I solve this problem.
there are other libraries to create pdf, if there are how can I use them in visualneo web.

@llazzari I think Android has not any PDF viewer built-in into the Web Browser, so you can't see it into an IFrame.
You can generate and download it instead so the user can open the document once downloaded.
As far as I know this is the way all mobile apps work.

Regards.

I tried but it doesn't download it
maybe I'm doing something wrong.
this is the code
... create a PDF specification; the default page size is A4 and the default orientation is portrait

neoPdfInit "Materials" "A4" "landscape"
... add a line of text to the PDF specifications; the default alignment is left

neoPdfNeoTable "Materials" "SubroutinesContainer" 80 "grid" 144 23 32

neoPdfFontSize "Materials" "43"

neoPdfSimpleText "Materials" "Tot. mc Concrete" 150 50 "center"

neoPdfDownload "Materials"

Greetings

@llazzari

I tried but it doesn't download it
maybe I'm doing something wrong.

Since I don't know whether the neoTable in SubroutinesContainer renders properly or not, I temporarily replaced your neoPdfNeoTable command with ...

neoPdfSimpleText "Materials" "This is Page 1\nThis is Line 2" 10 20 ""

Nothing happened until I added this command (PagesIframe is the container where the PDF is rendered) ...

neoPdfRender "Materials" "PagesIFrame"

... before the command ...

neoPdfDownload "Materials"

Since that worked, you need to examine your neoTable container, to ensure that it renders as expected, BEFORE invoking the code above.

Hi GAVE,
Thanks for your advice.
If I run the program from Chrome everything works.
Using an Android phone, only the table with the data is displayed.
It doesn't even download the pdf file.

@llazzari

If I run the program from Chrome everything works.

On my Windows Laptop, without the neoPdfRender command, nothing happens ... on both Chrome and Edge Chromium Edition.

So I am confused how it worked for you ... perhaps you have this command in your App but did not show it in your post.

P.S. I did not compile my script, just clicked on the icons.

Using an Android phone, only the table with the data is displayed.
It doesn't even download the pdf file.

Sorry, I don't know about Android ... I refer you to comment by @luishp about a lack of pdf viewer in Android.

I explained myself badly.
I entered the neopdfrender command, as I was saying, it works with chrom and other browsers, neotable loads the data,
neipdf displays the PDF in the iframe, and I can download it.

With Android, as @luishp said, only saving the PDF should work, this doesn't happen.
I'm interested in being able to save the file, and be able to view the data on the app with neotable.

Saluti

@llazzari please check this sample app from your mobile device. It works for me:

https://visualneo.com/tutorials/neotable-neopdf

Source code attached.

 

Uploaded files:
  • You need to login to have access to uploads.

Hi, luishp
I compiled your application, I installed it on my Android phone, neotable works, but it is not possible to download the PDF, it does not download it.

 

 

@llazzari have you tested my online published app? I mean, open your web browser, and navigate to:

https://visualneo.com/tutorials/neotable-neopdf

Does it work for you on Android? It works for me.
How are you generating your application?

As a file to upload to
Volt Builder, to generate an APK. for mobile phones with Android operating system.

Ho caricato un immagine.

 

Uploaded files:
  • You need to login to have access to uploads.

@llazzari have you tested my online published app? I mean, open your web browser, and navigate to:

https://visualneo.com/tutorials/neotable-neopdf

If it works for you in your web browser but not when you compile it using Volt Builder you should contact Volt Builder support.
It works for me when using the Android web browser.

Regards.

Open chat
1
Do you need more info?
Hi, do you have any doubt?