Questions tagged [tppdf]

Questions tagged with `TPPDF` are regarding the Open Source Swift PDF rendering framework `TPPDF`.

TPPDF is a PDF generation framework written in Swift for iOS.

Questions marked with this tag are regarding the usage of TPPDF, other than issues, which are submitted to GitHub directly.

13 questions
4
votes
1 answer

when export to pdf i got extra one empty page

I am saving images into pdf document let suppose I have 3 images and add them to the document it should show 3 pages. but what's happing is this I am getting 4 pages with the first page empty.I am using TPPDF pod for this TPPDF Environment TPPDF…
Muhammad Ahmad
  • 252
  • 3
  • 13
2
votes
3 answers

How can I lossless reduce PDF file size?

I generate a PDF with 288Kb size images, around 25- 30 images in that PDF and size of PDF 24MB. How can I reduce that without loss quality of images?
Suresh Jagnani
  • 330
  • 2
  • 13
1
vote
0 answers

How to Add Watermarks to Images in TPPDF Document?

What's the best way to add watermarks to images in a TPPDF document? Is this approach (#19) still the best way? If so, would you mind please elaborating on how you'd do this? I've found if I add watermarks to an image before adding to the document,…
Chris
  • 29
  • 4
1
vote
1 answer

Set Overall Table Size

How can I set the size of a table using TPPDF? By default, the table width seems to cover the whole page, and I'm not sure how to change that. I need my table cells to be square, but can only control their width relative to that of the table.…
KBurke
  • 31
  • 3
0
votes
0 answers

TPPDF Swift: unable to add table to footer

let footerTable = PDFTable(rows: 3, columns: 3) for i in 0...2{ for j in 0...2{ footerTable[i,j].content = try? PDFTableContent(content: "123123123") } } document.add(.footerCenter, table: footerTable) I…
Nik
  • 1
  • 2
0
votes
0 answers

TPPDF add a resized image as symbol and text to a tablecell

I want to create a pdf document using the TPPDF package in swift. Is it possible to add in a specific cell multiple items? I want to add a checkmark as image / Symbol and a related text behind it. (No accessable element just indicator) Column…
Jonas112
  • 1
  • 1
0
votes
0 answers

How to add an image with text to a PDFTableCell?

I need something like this (green square): enter image description here I've tried adding attributedString with an image attached to the cell, but that doesn't work. Do you have any ideas? let attachmentImage =…
0
votes
1 answer

Footer in every page in TPPDF ios

I am able to add the footer in a pdf, using TPPDF library in iOS. But I am not able to keep the footer on every page of the PDF. Any solution for the same? Here is how I have used the footer: **let attributedString = NSAttributedString(string: "Page…
Shivani Bajaj
  • 996
  • 10
  • 23
0
votes
1 answer

TPPDF Table Data Version 2.3

I have been using TPPDF to generate pdfs utilising tables. With the old version I was able to populate, set alignment and styles as per the code below. The _bodyData [Array] is comprised of [String, String, UIImage as Any, String, UIImage as…
thomkas
  • 1
  • 1
0
votes
1 answer

Is there any way to break up a PDFTable onto a different page?

First time poster here...but been using StackOverflow for solutions whenever I get stuck.. ton of great information here! I will try to describe the question as thoroughly as I can and hope someone can help me out with it. I need to generate a PDF…
geo93
  • 1
0
votes
1 answer

TPPDF : Add Multiple images with text content in the same cell in the Table()

I am working on a PDF Builder app and came through this tutorial. Is there any way around to add some text in a cell with multiple images. I tried different ways but it results into error in the PDF. I have tried this : let table = PDFTable() …
Yama
  • 2,649
  • 3
  • 31
  • 63
0
votes
1 answer

Auto page break while creating PDF in iOS (Swift)

I have to create a PDF which contains data like a quotation document (text, tables, images, etc.). The data varies from 1 page to 3-4 pages. A table cell may have combination of text and images. Also, I have custom graphics to be rendered in PDF to…
Chintan Shah
  • 1,744
  • 2
  • 26
  • 28
-1
votes
1 answer

In TPPDF I would like to add drawing graphics to a document page using PDFKit

Would like to be able to add drawing graphics using PDFKit as a watermark for each page of my report. Is there a supported way of doing that or any equivilent method in TPPDF
Jim Malak
  • 179
  • 1
  • 2