4#ifndef QPDFDOCUMENT_P_H
5#define QPDFDOCUMENT_P_H
20#include "third_party/pdfium/public/fpdfview.h"
21#include "third_party/pdfium/public/fpdf_dataavail.h"
23#include <QtCore/qbuffer.h>
24#include <QtCore/qmutex.h>
25#include <QtCore/qpointer.h>
26#include <QtNetwork/qnetworkreply.h>
68 void _q_tryLoadingWithSizeFromContentHeader();
69 void initiateAsyncLoadWithTotalSizeKnown(
quint64 totalSize);
70 void _q_copyFromSequentialSourceDevice();
71 void tryLoadDocument();
73 bool checkPageComplete(
int page);
76 static FPDF_BOOL fpdf_IsDataAvail(
struct _FX_FILEAVAIL* pThis,
size_t offset,
size_t size);
77 static int fpdf_GetBlock(
void*
param,
unsigned long position,
unsigned char* pBuf,
unsigned long size);
78 static void fpdf_AddSegment(
struct _FX_DOWNLOADHINTS* pThis,
size_t offset,
size_t size);
79 void updateLastError();
81 QPointF getCharPosition(FPDF_TEXTPAGE textPage,
double pageHeight,
int charIndex);
82 QRectF getCharBox(FPDF_TEXTPAGE textPage,
double pageHeight,
int charIndex);
91 CounterClockWise90 = 3
98 return QFPDFRotation::Normal;
100 return QFPDFRotation::ClockWise90;
102 return QFPDFRotation::ClockWise180;
104 return QFPDFRotation::CounterClockWise90;
IOBluetoothDevice * device
\inmodule QtCore \reentrant
\inmodule QtCore \reentrant
void loadAsync(QIODevice *device)
QPointer< QIODevice > device
QPdfDocument::Status status
QScopedPointer< QIODevice > ownDevice
static constexpr QFPDFRotation toFPDFRotation(QPdfDocumentRenderOptions::Rotation rotation)
QPointer< QIODevice > sequentialSourceDevice
QPdfDocument::Error lastError
The QPdfDocument class loads a PDF document and renders pages from it.
Status
This enum describes the current status of the document.
Error
This enum describes the error while attempting the last operation on the document.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLenum const GLint * param
GLenum GLuint GLintptr offset
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static void getText(QString &text, QTextDocumentPrivate *priv, const QString &docText, int pos, int end)
#define Q_PDF_PRIVATE_EXPORT
unsigned long long quint64