Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. 'USAR PDF EXISTENTE
  2. Dim reader As PdfReader = New PdfReader(Application.StartupPath & "DocsEtiquetaCtps.pdf")
  3. Dim stamper As PdfStamper = New PdfStamper(reader, New FileStream(TxtArquivoPdf.Text, FileMode.Create))
  4.  
  5. 'CARREGA PDF EXISTENTE FICHA DE CADASTRO
  6. Dim total As Integer = reader.NumberOfPages() + 1
  7. For i As Integer = 1 To total - 1
  8. Dim over As PdfContentByte = stamper.GetOverContent(i)
  9. over.BeginText()
  10. Dim bf_times As BaseFont = BaseFont.CreateFont(BaseFont.COURIER, "Cp1252", False)
  11. over.SetFontAndSize(bf_times, 8)
  12. over.ShowTextAligned(PdfContentByte.ALIGN_LEFT, " " & tbxSalarioExt.Text & " ", 50, 626, 0)
  13.  
  14. over.EndText()
  15. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement