Create PDF from any XML Layout/View in Android Studio - Step by Step Tutorial

Create PDF from any XML Layout/View in Android Studio - Step by Step Tutorial

The Code City

1 год назад

8,484 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@immax321
@immax321 - 25.01.2024 17:28

Great video! How do i create a multi page PDF based on the size of my XML?

Ответить
@cub3608
@cub3608 - 19.01.2024 12:43

really good . thanks. it would be helpful if u do tutorial on jetpack compose pdf

Ответить
@sanketbeladiya2062
@sanketbeladiya2062 - 10.01.2024 09:12

xml layout ki height jyada he yani xml layout me scroll view add karna pada to pdf me ak hipage me aa raha he usme page break kase kare or jab ham print karte he tab jo height badi hogi to ak kone me chala ja raha he view chota ho ja rahah he use kese overcome kare please guide

Ответить
@user-in6df9jo7d
@user-in6df9jo7d - 04.01.2024 08:34

Using this method, Recycler view items are not getting shown in the PDF. How can i solve this?

Ответить
@Khalid_Se
@Khalid_Se - 26.12.2023 10:43

This is the most clear explanation I had saw on this topek so clear helpful big thumbs up, I have note instead of using View and inflate it, I used ( ActivityMainBinding ) which is the new way of finding the ( rootView ) and components on the layout, Thank you so much.

Ответить
@user-ro1zw8fn6r
@user-ro1zw8fn6r - 11.12.2023 18:02

you saved my day brother. Thank you so much for this lovely video. love u

Ответить
@meet_mistry880
@meet_mistry880 - 09.10.2023 10:21

what if i don't need to print button from layout to pdf ?

Ответить
@juancamilonaranjo4063
@juancamilonaranjo4063 - 05.10.2023 19:43

Thank u so much, you are awesome

Ответить
@venkeyrao7511
@venkeyrao7511 - 24.09.2023 07:06

i think its related to getMinimumHeight

Ответить
@IndianTemples-bb8gx
@IndianTemples-bb8gx - 08.09.2023 12:14

hii, It works, but text view is not showing

Ответить
@person1745
@person1745 - 20.07.2023 10:43

Hi, I followed your code and was able to create the pdf in the files, but I can't open it. Do you have any idea what went wrong? Thanks

Ответить
@gujaratfortunegiants8263
@gujaratfortunegiants8263 - 10.07.2023 14:31

I have retrieved the details from my firebase realtime database to the layout, and have edited it as well... and also i have kept scroll view at lower end ... when i download it must create in pages if my content in scroll view isnt visible.. i can share pictures and idea to you, if u allow... how can i achieve it?

Ответить
@shinto2822
@shinto2822 - 05.07.2023 09:45

I loved your Video! It was immensely helpful and I really appreciate how you troubleshooted the problem of getting height as 0 because of setting it to minimumheight. It was very methodical and sufficiently explained. I'd like a detailed explanation of the stuff you skipped (such as things like view.layout(0, 0, displaymetrics...), etc. Please provide a link in the description where I can read more about this stuff.
Awesome video. I'm Subscribing.

Ответить
@janmatuscin2204
@janmatuscin2204 - 04.07.2023 10:56

Hi. Thx for video. Does this works with scrolling wiev?

Ответить