func (VS *Server) generatePDFNewQRCodes(c *gin.Context) {
	idPDF := bson.NewObjectId()
	pagesNumber, b := VS.getIntFromHTML(c, "pages", "PDF QR")
	if !b {
		return
	}
	typeOfItem, b := VS.getStringFromHTML(c, "typeofitem", "PDF QR")
	if !b {
		return
	}
	VS.generatePDFfromURL(c, URLbase+"reports/generate-new-pdf/"+idPDF.Hex()+"/"+typeOfItem+"/"+strconv.Itoa(pagesNumber), "/local-resources/pdf/qr", idPDF)
	c.Redirect(http.StatusFound, "/reports/show-qr-codes/")
}
// The POST method that created the new PDF and goes back to the list of QR PDFs
The POST method that created the new PDF and goes back to the list of QR PDFs
// The POST method that created the new PDF and goes back to the list of QR PDFs
func (VS *Server) generatePDFNewQRCodes(c *gin.Context) {
	idPDF := bson.NewObjectId()
	pagesNumber, b := VS.getIntFromHTML(c, "pages", "PDF QR")
	if !b {
		return
	}
	typeOfItem, b := VS.getStringFromHTML(c, "typeofitem", "PDF QR")
	if !b {
		return
	}
	VS.generatePDFfromURL(c, URLbase+"reports/generate-new-pdf/"+idPDF.Hex()+"/"+typeOfItem+"/"+strconv.Itoa(pagesNumber), "/local-resources/pdf/qr", idPDF)
	c.Redirect(http.StatusFound, "/reports/show-qr-codes/")
}
func ( VS * Server ) generatePDFNewQRCodes ( c * gin . Context ) { idPDF := bson . NewObjectId ( ) pagesNumber , b := VS . getIntFromHTML ( c , " " , " " ) if ! b { return } typeOfItem , b := VS . getStringFromHTML ( c , " " , " " ) if ! b { return } VS . generatePDFfromURL ( c , URLbase + " " + idPDF . Hex ( ) + " " + typeOfItem + " " + strconv . Itoa ( pagesNumber ) , " " , idPDF ) c . Redirect ( http . StatusFound , " " ) }
The POST method that created the new PDF and goes back to the list of QR PDFs
The POST method that created the new PDF and goes back to the list of QR PDFs