Sorry, I cannot reproduce. You may send me your text in WPT format so I can load it-
Posts by wpsupport
-
-
It may load the wrong DLL - please check which WPViewPDF Version is in the EXE Directory. It may be a different one to the one you depoly.
-
You can use the old RES file
-
WPTools 9.3 optionally uses even SVG based tool bar icons which are rendered on the fly to a bitmap with the right resolution.
If you want to update the icons to your liking you can use the resource editor and edit Wptbresnew.res or link in the old WPTBRES.RES
-
WPXOrder ist eine Sammlung von Delphi-Units zur Erstellung und Auswertung von X-Factur (ZUGFeRD) XML-Daten.
Sie wurde erstellt, um Rechnungs Daten zu laden, zu verarbeiten und zu speichern. Es beinhaltet noch nicht den E-Invoice-Standard und ist darauf ausgerichtet, XML-Daten zu erstellen, die in PDF-Rechnungen eingebettet werden. Um solche Rechnungen zu erstellen, können Sie die praktische PDF-Erstellungs-VCL wPDF verwenden. Um solche Rechnungen zu lesen, können Sie WPViewPDF PLUS verwenden, das nicht nur X-Factur Daten extrahieren, sondern auch anhängen kann.
Bitte schauen Sie sich den Quellcode auf unserer WPXOrder GitHub Seite an.
Zweck und Lizenzierung
WPXOrder wurde entwickelt, um XML-Anhänge für Rechnungen zu erstellen, die als PDFs verteilt werden. Es wurde in Delphi 10.1 entwickelt und funktioniert am besten mit unseren Produkten wPDF oder WPViewPDF PLUS. Es kann auch verwendet werden, um Rechnungs XML-Daten zu lesen und auf alle Eigenschaften einfach zuzugreifen. Es kann auch zur Überprüfung der Berechnung (Gesamtsummen) verwendet werden - bitte beachten Sie jedoch, dass wir nicht garantieren können, dass solche Berechnungen in jedem Fall korrekt funktionieren.
Durch die Art der Implementierung werden folgende Fehler bei der Erstellung von XML Daten vermieden:
1) Schreibfehler der XML Tags
2) Eigenschaften in falschem Eltern XML Element
3) Falsche Reihenfolge der Elemente (Wichtig für die Validierung)
Desweitern kann man Werte in speziellen Typen, wie TDateTime oder float values zuweisen.
Mit der mitgelieferten EXE können Sie die Beispiel-PDFs öffnen und die internen Berechnungen mit den in den PDFs hinterlegten Zahlen vergleichen.Mit nur einem Klick können Sie Delphi-Code erstellen, der die Daten so erzeugt, wie sie in die Rechnung geladen werden. Dies erleichtert das Verständnis Format besser zu verstehen und Rechnungen zu erzeugen, die erfolgreich validiert werden können.
WPXOrder - create and read X-Factur/ZUGFeRD XML -
Nun ist das Modul fertig. Hier wird die neue Bibliothek beschrieben:
-
To embed the created XML with wPDF you can use this code.
The example assumes the XML code has been already saved to the database in the blob field OrdersINVOICEXML.
The Invoice has been created with WPTools and is exported using the WPPDFExport1 component.
Code
Display Moreprocedure TForm1.btnCreatePDF(Sender: TObject); var mem : TMemoryStream; lst : TStringList; s : string; begin mem := TMemoryStream.Create; try WPPDFExport1.Info.Producer := 'wPDF - https://www.wpcubed.com'; if FileExists(PDFName.Text) then begin if MessageDlg('PDF Datei existiert. Überschreiben?',mtConfirmation, [mbYes, mbNo],0)=ID_NO then begin PDFName.SelectAll; PDFName.SetFocus; exit; end; end; WPPDFExport1.FileName := PDFName.Text; WPPDFExport1.AutoLaunch := false; WPPDFExport1.CompressStreamMethod := wpCompressFlate; WPPDFExport1.Source.ReformatAll(true); WPPDFExport1.Source.ReformatAll(true); WPPDFExport1.FontMode := wpEmbedCIDFonts; OrdersINVOICEXML.SaveToStream(mem); mem.Position := 0; if mem.Size>0 then begin WPPDFExport1.PDFAMode := wpdfaLevel3B; lst := TStringList.Create; s := Format( pdfa_xfactur_info, [pdfa_xfactur_filename,'EXTENDED'] ); WPPDFExport1.AddXMPExtra( pdfa_xfactur_schema, s ); lst.Free; end; WPPDFExport1.BeginDoc; try if mem.Size>0 then WPPDFExport1.AddFileAttachment( pdfa_xfactur_filename, pdfa_xfactur_description, mem, 'text/xml', now, [wpDontCompressData]) else ShowMessage('Keine XML Daten für X-Factur vorhanden, erzeuge reguläres PDF'); WPPDFExport1.Print; finally WPPDFExport1.EndDoc; end; PDFName.SelectAll; PDFName.SetFocus; finally mem.Free; end; end;
-
Now available:
WPXOrder, a collection of Delphi units to create X-Factur (ZUGFeRD) XML data.
Please see WPXOrder - create and read X-Factur/ZUGFeRD XML
the source code and also an example is available on GitHub wpcubed/xorder
Also see here:
WPXOrder - X-Factur (ZUGFeRD) XML Daten lesen und erzeugen - Delphi-PRAXiS
-
-
Die Erweiterung ist leider noch nicht fertig.
Es ist ein Modul in Arbeit welches eine XRechnung XML erstellen kann indem -typsicher im code die einzelnen Elemente gesetzt werden.
Code-Beispiel folgt in Kürze.
-
A new version with invoice embedding is currently beeing developed.
The mode wpdfaLevel3B should be set for ZUGFeRD.
-
Hello, this took a while, sorry.
The new version wPDF V5.2.0 include updated code for ArcTo which renders your example file.
-
I hope you recieved my e-mail.
At present there is no object to create a checkbox for WPTools. This may be a feature in future. -
Did you receive a list of entries?
Is the name you of the data you need to extract listed there?
"Index" would be the index in this list. -
-
The INC file is only used by the demo projects.
You need to call the methodWPViewPDF1.ViewerStart('', LicName, LicKey, LicCode);
In your code, i.e. Form.OnCreate
-
I was able to reproduce this using the EMF and by setting the flag it improved.
I am able to reproduce the problem using your example code and fixed it for next build of wPDF V5 -
Please try to add a call to
SetArcDirection(Canvas.Handle, 2 )
to make sure it uses the correct direction. In my testes that fixes the line at the start.
>> What does "Blocked image" mean?
It simply does not load the image from your server when loading the page. It is possible to click on the link though.
-
Sorry, the office was closed for 3 weeks.
WPViewPDF PLUS can add a stamp (JPEG and some text in standard font).It cannot check for electronic signatures though.
-
PDF in PDF/A umwandeln kann WPViewPDF nicht. Die PLUS version kann allerdings anhänge anhängen, wie XML Daten.
Es wird dazu demnächts eine Erweiterung + Demo geben, da X-Rechnung immer wichtiger wird.