This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.barrasitext; | |
import java.io.File; | |
import com.itextpdf.barcodes.Barcode128; | |
import com.itextpdf.barcodes.Barcode39; | |
import com.itextpdf.barcodes.BarcodeCodabar; | |
import com.itextpdf.barcodes.BarcodeEAN; | |
import com.itextpdf.barcodes.BarcodeInter25; | |
import com.itextpdf.barcodes.BarcodeMSI; | |
import com.itextpdf.barcodes.BarcodePostnet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dialogo } from "./dialogo.js"; | |
document.addEventListener("DOMContentLoaded", function() { | |
console.log("Inicializando"); | |
let dialogo = new Dialogo(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
class Dialogo { | |
constructor() { | |
// Obtenemos los objetos relevantes del documento | |
this.overlay = document.getElementById("overlay"); | |
this.btn = document.getElementById("botonDialogo"); | |
this.span = document.getElementsByClassName("botonCerrar")[0]; | |
// le asignamos a cada boton una funcion qie se llamara al presionar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.overlay { | |
display: none; /* Hidden by default */ | |
position: fixed; /* Stay in place */ | |
z-index: 1; /* Sit on top */ | |
left: 0; | |
top: 0; | |
width: 100%; /* Full width */ | |
height: 100%; /* Full height */ | |
overflow: auto; /* Enable scroll if needed */ | |
background-color: rgb(0, 0, 0); /* Fallback color */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Ese div cubre la pantalla con una capa translucida --> | |
<div id="overlay" class="overlay"> | |
<!-- Contenido del dialogo --> | |
<div class="contenidoDialgo"> | |
<!-- Titulo y boton para cerrar--> | |
<div class="tituloDialogo"> | |
Titulo del Dialogo | |
<span class="botonCerrar">×</span> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mx.hashsoft.itext7; | |
import com.itextpdf.kernel.events.Event; | |
import com.itextpdf.kernel.events.IEventHandler; | |
import com.itextpdf.kernel.events.PdfDocumentEvent; | |
import com.itextpdf.kernel.geom.Rectangle; | |
import com.itextpdf.kernel.pdf.PdfDocument; | |
import com.itextpdf.kernel.pdf.PdfPage; | |
import com.itextpdf.kernel.pdf.canvas.PdfCanvas; | |
import com.itextpdf.layout.Canvas; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mx.hashsoft.itext7; | |
import com.itextpdf.kernel.events.PdfDocumentEvent; | |
import com.itextpdf.kernel.geom.PageSize; | |
import com.itextpdf.kernel.pdf.PdfDocument; | |
import com.itextpdf.kernel.pdf.PdfWriter; | |
import com.itextpdf.layout.Document; | |
import com.itextpdf.layout.element.Paragraph; | |
import java.io.FileNotFoundException; | |
import java.util.logging.Level; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>mx.hashSoft</groupId> | |
<artifactId>iText7</artifactId> | |
<version>1.0</version> | |
<packaging>jar</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>com.itextpdf</groupId> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package mx.hash.multilogger; | |
import java.io.IOException; | |
import java.util.logging.FileHandler; | |
import java.util.logging.Handler; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cfdi:Comprobante": { | |
"cfdi:Conceptos": {"cfdi:Concepto": [ | |
{ | |
"ClaveProdServ": "01010101", | |
"ValorUnitario": 350, | |
"ClaveUnidad": "H87", | |
"NoIdentificacion": "AULOG001", | |
"Importe": 1750, | |
"Cantidad": 5, | |
"cfdi:Impuestos": {"cfdi:Traslados": {"cfdi:Traslado": { |
NewerOlder