Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vishalkalola1/drawpdf
Draw/Write pdf using Swift
https://github.com/vishalkalola1/drawpdf
createpdf drawpdf ios-pdf objective-c pdf pdf-generation swift tablepdf
Last synced: 6 days ago
JSON representation
Draw/Write pdf using Swift
- Host: GitHub
- URL: https://github.com/vishalkalola1/drawpdf
- Owner: vishalkalola1
- License: mit
- Created: 2017-07-19T09:38:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T11:47:43.000Z (over 6 years ago)
- Last Synced: 2024-10-13T05:16:20.953Z (about 1 month ago)
- Topics: createpdf, drawpdf, ios-pdf, objective-c, pdf, pdf-generation, swift, tablepdf
- Language: Swift
- Homepage:
- Size: 222 KB
- Stars: 17
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DrawPDF
# PODS
```
pod 'DrawPDF'
```
# RequirementsXcode 8+
Swift 3.0, Swift 4.0
iOS 8+
ARC## Basic Usage ##
### DRAG & DROP VPDFTableCreation FOLDER TO YOUR PROJECT ###
#### Make array of row and ColumnData Like Below Formate ####
```[[1,'abc',.....],[2,'abc',...],......]
var finalArray = [[String]]()
for i in 0..<1000 {
var arrColumnData = [String]()
arrColumnData.append("\(i+1)")
for _ in 0..<4{
arrColumnData.append("abc")
}
finalArray.append(arrColumnData)
}
var arrHeaderArray = [String]()
for _ in 0...4{
arrHeaderArray.append("abc")
}
```
#### Create an instance of VPDFTableCreation call below method ####
```
let objPdfView = VPDFTableCreation()
objPdfView.CreatePDFAndSaveDocumentDirectory(pdfName: "VPDFTableCreation", width: 500, height: 580)
objPdfView.DrawPDF(TotalData:finalArray, headerData: arrHeaderArray, EachColumnWidth: [50,50,50,50,260], fontSize: 12.0, textAlignment: .center, Viewcontroller: self)
```
**Get the PDFFile Path.**
```
let path = objPdfView.getPDFFile()
print(path)```