Skip to content

Add the functionality of TPPDF about image#3

Merged
techprimate merged 41 commits into
techprimate:developfrom
kf99916:master
Jan 5, 2017
Merged

Add the functionality of TPPDF about image#3
techprimate merged 41 commits into
techprimate:developfrom
kf99916:master

Conversation

@kf99916
Copy link
Copy Markdown
Contributor

@kf99916 kf99916 commented Dec 1, 2016

The summary of this pull request

  • generate a new page if the rest space is not enough for a image
  • image caption
  • pagination
  • imageQuality to reduce pdf file size
  • addImagesInRow
  • a image is in the header or footer

Comment thread TPPDF/Classes/PDFGenerator.swift Outdated
UIGraphicsEndImageContext()

// compression
if let image = compressedImage, let jpegData = UIImageJPEGRepresentation(image, imageQuality) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use a guard statement and some kind of error handling in case something goes wrong.

One way would be creating an error enum TPPDFError

Copy link
Copy Markdown
Collaborator

@techprimate techprimate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The headerSpace is below the actual header. Therefore the line should draw directly below the header text and not directly above the content.

Therefore this change is not correct.

@techprimate techprimate changed the base branch from master to develop January 5, 2017 21:41
@techprimate techprimate merged commit 7fab1c8 into techprimate:develop Jan 5, 2017
@techprimate
Copy link
Copy Markdown
Collaborator

Merged this pull request, now cleaning up code and optimization before release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants