Comments (10)
Looks like you changed some stuff inside library, PDFTextView constructor has unknown parameter false and "", check your PDFTextView class.
If i just use your getHeaderView() and getBodyViews() code in this library (as it was intended), you get result as this PDF File.
Also, if you are trying to create a PDF that this library cannot produce, please tell me as i can try to add those API's.
from pdfcreatorandroid.
Hi tej,
i am trying to create pdf without view in xml .Without rendering in screen i want to create pdf .is it possbile in this library
from pdfcreatorandroid.
from pdfcreatorandroid.
This library renders a view to pdf, it has to be rendered on a Screen (it can have visibility as INVISIBLE). Without rendering, we cannot determine height taken by that view.
If you do not want to show preview to user, You can call finish() on the activity once pdf is generated. User won't see any preview and you will get generated pdf file.
from pdfcreatorandroid.
Is there any posiblities like pagination .
like in 1st page 15 records 2nd page 20records like that
from pdfcreatorandroid.
Just make your last records Row height as match parent. It will fill all space and no other view can be added to that page.
But be aware, if your data is dynamic and your last row comes to next page, it will make that page empty.
from pdfcreatorandroid.
ok how to find last row record of every page .
from pdfcreatorandroid.
I thought you knew which is the last record as you said
"1st page 15 records 2nd page 20records"
So in your first page, make 15th record's row height as match_parent and in second page make 20th redocr's row height as match_parent.
If you want to know which view will be last in a page, there is no such API available.
Library calculate if there is enough space in current page to add next view, if yes then next view will be added to current page else that view will be added to a new page with Header.
from pdfcreatorandroid.
One more i tried to set 15 records for first page .where want to do this i am doing createPDFFromViewList method
and want to know where this Library calculate if there is enough space in current page to add next view, if yes then next view will be added to current page else that view will be added to a new page with Header.
happening bro?
from pdfcreatorandroid.
One more i tried to set 15 records for first page .where want to do this i am doing createPDFFromViewList method
If you want to limit 15 records for first page, make 15th record's height as match_parent. Or add a text view with height match_parent to fill current page.
and want to know where this Library calculate if there is enough space in current page
It is calculated in PDFCreatorActivity.createPDFFromViewList()
, when this function waits till all view is rendered in activity view so we can get height required by every view, then we add views to page one by one and check remaining space should be >height of next view.
from pdfcreatorandroid.
Related Issues (20)
- Do you support password protected pdf? HOT 1
- cannot resize entire row depending on the value in textviews HOT 4
- Can't change the next button text color HOT 1
- getHeaderView、getBodyViews、getFooterView,These methods will be executed twice in a very short time? HOT 3
- Arabic contents in PDFs generated from HTML HOT 1
- Multiple page pdf not creating as CurrentpageHeight and viewitem.getHeight is always 0 HOT 12
- Can we create a pdf by having fixed width and height may vary. HOT 3
- The specified child already has a parent. You must call removeView() on the child's parent first.
- loss clarity when zooming HOT 3
- Page size and color HOT 1
- generate pdf only after image has been retrieved from the web HOT 2
- Y HOT 1
- Application creashed when Text is given in Urdu Language
- Adding Font as a base 64 Does not create Pdf.
- Android 12 Fatal Exception: java.lang.IllegalArgumentException: fd cannot be null HOT 2
- How to align text in right side of pdf HOT 1
- Question: Possible to create PDF without using a special Activity for it? HOT 1
- free doc viewer support view word excel ppt pdf txt image in sdcard & uri & assets & url download here https://github.com/Victor2018/DocViewer
- how to add cell border to table
- How to add clickable image link? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfcreatorandroid.