Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
PDF creation issue in iPhone

I am loading some static HTML page in wkwebview, after loading i am creating PDF from following code

  let pdfData = createPdfFile(printFormatter: self.webView.viewPrintFormatter())

func createPdfFile(printFormatter: UIViewPrintFormatter) -> NSData {
    let renderer = UIPrintPageRenderer()
    renderer.addPrintFormatter(printFormatter, startingAtPageAt: 0)
    let pdfPageFrame = CGRect(x: 0, y: 0, width: 595.2, height: 841.8) // A4, 72 dpi
    let printable = pdfPageFrame.insetBy(dx: 0, dy: 10)
    renderer.setValue(pdfPageFrame, forKey: "paperRect")
    renderer.setValue(printable, forKey: "printableRect")
    return renderer.printToPDF()
}

Its working fine i am able to create PDF, But the problem i am facing some time the text in between 2 pages is cropping , please find screen shots enter image description here enter image description here

Can any one help me to solve this issue, Thanks in advance.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda