2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-23 07:08:30 +00:00

Fix doc typos

This commit is contained in:
m-holger 2022-01-30 13:28:37 +00:00 committed by Jay Berkenbilt
parent 8eca9d8fd9
commit 0f9086e509
2 changed files with 9 additions and 9 deletions

View File

@ -115,7 +115,7 @@ class QPDF
// For certain forensic or investigatory purposes, it may
// sometimes be useful to specify the encryption key directly,
// even though regular PDF applications do not provide a way to do
// this. calling setPasswordIsHexKey(true) before calling any of
// this. Calling setPasswordIsHexKey(true) before calling any of
// the process methods will bypass the normal encryption key
// computation or recovery mechanisms and interpret the bytes in
// the password as a hex-encoded encryption key. Note that we
@ -140,7 +140,7 @@ class QPDF
// filter types or override existing ones provided by the library.
// Registered stream filters are used for decoding only as you can
// override encoding with stream data providers. For example, you
// could use this method to support for one of the other filter
// could use this method to add support for one of the other filter
// types by using additional third-party libraries that qpdf does
// not presently use. The standard filters are implemented using
// QPDFStreamFilter classes.
@ -175,7 +175,7 @@ class QPDF
// By default, any warnings are issued to std::cerr or the error
// stream specified in a call to setOutputStreams as they are
// encountered. If this is called with a true value, reporting of
// encountered. If this method is called with a true value, reporting of
// warnings is suppressed. You may still retrieve warnings by
// calling getWarnings.
QPDF_DLL
@ -215,7 +215,7 @@ class QPDF
// other objects, some transient and some not. Since what's
// relevant is whether the source QPDF is transient, the method
// must be called on the source QPDF, not the destination one.
// Since this method will make a copy of the stream in RAM, so be
// This method will make a copy of the stream in RAM, so be
// sure you have enough memory to simultaneously hold all the
// streams you're copying.
QPDF_DLL
@ -236,13 +236,13 @@ class QPDF
QPDF_DLL
bool anyWarnings() const;
// Indicate the number of warnings that have been issued so far.
// Does not clear the list of warnings.
// Indicate the number of warnings that have been issued since the last
// call to getWarnings. Does not clear the list of warnings.
QPDF_DLL
size_t numWarnings() const;
// Return an application-scoped unique ID for this QPDF object.
// This is not a globally unique ID. It is constructing using a
// This is not a globally unique ID. It is constructed using a
// timestamp and a random number and is intended to be unique
// among QPDF objects that are created by a single run of an
// application. While it's very likely that these are actually
@ -351,7 +351,7 @@ class QPDF
// you are going to turn into a form XObject, though you can also
// use QPDFPageObjectHelper::getFormXObjectForPage for that
// purpose.
//
// When copying objects with this method, object structure will be
// preserved, so all indirectly referenced indirect objects will
// be copied as well. This includes any circular references that

View File

@ -31,7 +31,7 @@ class QPDF_Dictionary: public QPDFObject
void replaceKey(std::string const& key, QPDFObjectHandle);
// Remove key, doing nothing if key does not exist
void removeKey(std::string const& key);
// If object is null, replace key; otherwise, remove key
// If object is null, remove key; otherwise, replace key
void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle);
protected: