wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_PdfExport.cpp File Reference

Checks that the PDF export (PdfExport, drawn with wxPdfDocument) gives wxMaxima what it needs: More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/ffile.h>
#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/mstream.h>
#include <wx/sstream.h>
#include <wx/xml/xml.h>
#include <wx/zstream.h>
#include "BuildConfig.h"
#include "Configuration.h"
#include "MathParser.h"
#include "cells/GroupCell.h"
#include "cells/CellList.h"
#include "graphical_io/OutCommon.h"
#include "graphical_io/PDFout.h"
#include "graphical_io/PdfExport.h"
#include "worksheet/Worksheet.h"
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <vector>
#include <catch2/catch.hpp>
Include dependency graph for test_PdfExport.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("PDF export is available in this build")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Checks that the PDF export (PdfExport, drawn with wxPdfDocument) gives wxMaxima what it needs:

The PDF is read back by a minimal parser below: it inflates every stream, so that the checks can look at the content, the structure tree and the fonts' ToUnicode maps as text. Set WXM_PDF_DUMP_DIR=<dir> to keep the PDFs for a look with a PDF viewer, pdffonts or a PDF/UA checker.