Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

119
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda